Learn R Programming

phiDelta (version 1.0.1)

dist_to_middle: distance to the middle of the space

Description

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

Usage

dist_to_middle(phi, delta, ratio)

Arguments

phi

numeric value or vector of phi

delta

numeric value or vector of delta

ratio

is the ratio of positive and negative of the data. The default is 1

Value

the euclidic distance of the tuple to the middle

Examples

Run this code
# 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