#The object example.database is a numeric matrix that saves
#6 ARIMA time series in a row-wise format. For more information
#see help page of example.databases:
help(example.database)
data(example.database)
#To calculate the distance matrix of this database:
tsDatabaseDistances(example.database, distance="manhattan")
tsDatabaseDistances(example.database, distance="edr", epsilon=0.2)
tsDatabaseDistances(example.database, distance="fourier", n=20)
#The object zoo.database is a zoo object that saves
#the same 6 ARIMA time series saved in example.database.
data(zoo.database)
#To calculate the distance matrix of this database:
tsDatabaseDistances(zoo.database, distance="manhattan")
tsDatabaseDistances(zoo.database, distance="edr", epsilon=0.2)
tsDatabaseDistances(zoo.database, distance="fourier", n=20)Run the code above in your browser using DataLab