powered by
calculates the euclidic distance of a phi delta tuple to the middle of the phi delta space. This could be used for a rating of the features
dist_to_middle(phi, delta, ratio)
numeric value or vector of phi
numeric value or vector of delta
is the ratio of positive and negative of the data. The default is 1
the euclidic distance of the tuple to the middle
# NOT RUN { dist_to_middle(1,0,1) dist_to_middle(0.5,0.3,1) # }
Run the code above in your browser using DataLab