Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

dist3d

~ Function: dist3d ~


Description

Compute the distante between two joint trajectories.

Usage

dist3d(x, y, method = "euclidian", power = 2)

Arguments

x

[matrix(numeric)]: first trajectory. The colomn are time, the line are variables.

y

[matrix(numeric)]: second trajectory. The colomn are time, the line are variables.

method

[character]: method used. Should be one of the method used by the function dist.

power

[numeric]: if method="minkowski", poweris the power used.

Details

Compute the distante between two joint trajectories, using one of the distance define by dist.

Value

A numeric

Examples

### Generate artificial data
  myCld <- gald3d()

  ### Distance between individual 1 and 3 (there are in the same group)
  dist3d(myCld['traj'][1,,],myCld['traj'][3,,])

  ### Distance between individual 1 and 51 (there are in two different groups)
  dist3d(myCld['traj'][1,,],myCld['traj'][51,,])

kml3d

K-Means for Joint Longitudinal Data

v2.4.2
GPL (>= 2)
Authors
Christophe Genolini [cre, aut], Bruno Falissard [ctb], Jean-Baptiste Pingault [ctb]
Initial release
2017-08-01

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.