Rtmax: Randomized Frechet tree

View source: R/Rtmax.R

RtmaxR Documentation

Randomized Frechet tree

Description

Randomized Frechet tree

Usage

Rtmax(
  Curve = NULL,
  Scalar = NULL,
  Factor = NULL,
  Shape = NULL,
  Image = NULL,
  Y,
  mtry,
  ERT = FALSE,
  ntry = 3,
  nodesize = 1,
  timeScale = 0.1,
  ...
)

Arguments

Curve

[list]: A list that contains the different input curves. It must contain the following elements (no choice): X the matrix of the different curves, each column code for a different curve variable; id is the vector of the identifiers for the different trajectories contained in X; time is the vector of the measurement times associated with the trajectories contained in X.

Scalar

[list]: A list that contains the different input scalars. It must contain the following elements (no choice): X the matrix of the scalars, each column code for a different variable; id is the vector of the identifiers for each individual.

Factor

[list]: A list that contains the different input factors. It must contain the following elements (no choice): X the matrix of the factors, each column code for a different variable; id is the vector of the identifiers for each individual.

Shape

[list]: A list that contains the different input shapes. It must contain the following elements (no choice): X the array of the shapes of dimension nx2xlxp where n is the number of points for composing each shape, l is the number of shapes and p is the number of shapes variables, id is the vector of the identifiers for each individual.

Image

[list]: A list that contains the different input images. It must contain the following elements (no choice): X the array of the images of dimension nxmxlxp where n*m is the size of each image, l is the number of images and p is the number of shapes variables; id is the vector of the identifiers for each individual.

Y

[list]: A list that contains the output, It must contain the following elements (no choice): type defines the nature of the output, can be "curve", "sclalar", "factor", "shape", "image"; Y is the output variable; id is the vector of the identifiers for each individuals, they should be the same as the identifiers of the inputs.

mtry

[integer]: Number of variables randomly sampled as candidates at each split. The default value p/3

ERT

[logical]: Number of trees to grow. This should not be set to too small a number, to ensure that every input row gets predicted at least a few times.

ntry

[numeric]: Only with ERT=TRUE, allows to manage with randomness of the trees.

nodesize

[numeric]: Minimal number of observations in a node.

timeScale

[numeric]: Allow to modify the time scale, increasing or decreasing the cost of the horizontal shift. If timeScale is very big, then the Frechet mean tends to the Euclidean distance. If timeScale is very small, then it tends to the Dynamic Time Warping. Only used when there are trajectories either in input or output.

...

: optional parameters to be passed to the low level function


Lcapitaine/FrechForest documentation built on July 4, 2023, 3:30 a.m.