draw8dist: returns the distances for the selection to be operated with...

Description Usage Arguments Details Value Examples

Description

(dn) The description of the algorithm is given into /rebastaba/ manual. The selection is monitored by the weights and power coefficient usually associated to a /win/.

Usage

1
draw8dist(ind, E, wgt, kk, nat)

Arguments

ind

Value of the individual to predict (one row data.frame.

E

data.frame with the candidates in its rows.

wgt

Named weight(s) to be used for the computation of the distances. When this argument is null, the same distance is returned for all rows of E.

kk

Power coefficient to be used for the computation of the distances.

nat

natures of the ind variables (named character).

Details

No systematic check of the argument at this level

Value

a numeric vector of length nrow(E) containing the distance of ind with each row of E.

Examples

1
2
3
4
5
 rebastaba3k("RESET"); # to comply R checking
 E <- data.frame(A=1:100, c=100:1); # the empirical distribution
 wgt <- structure(1, .Names="A");
 nat <- structure("conti", .Names="A");
 draw8dist(data.frame(A=20), E, wgt, 1, nat);

rebastaba documentation built on May 2, 2019, 5:24 p.m.