knife_edge function

Weight based knife-edge selectivity function