discretize_rgr function

Variable discretization by gain ratio maximization