Hermes
 All Data Structures Files Functions Variables Macros Pages
dec_sr.sql File Reference

The file implements trajectory transformation with decreased sampling rate. More...

Functions

integer trajectory_transformation_dec_sr (text dataset, float rate, boolean save=true, text new_dataset_name="transformed", boolean csv_file=true)
 This function performs trajectory transformation with decreased sampling rate to the selected dataset. More...
 

Detailed Description

The file implements trajectory transformation with decreased sampling rate.

Author
Kiriakos Velissariou (kir.v.nosp@m.elis.nosp@m.sario.nosp@m.u@gm.nosp@m.ail.c.nosp@m.om).

Function Documentation

integer trajectory_transformation_dec_sr ( text  dataset,
float  rate,
boolean  save = true,
text  new_dataset_name = "transformed",
boolean  csv_file = true 
)

This function performs trajectory transformation with decreased sampling rate to the selected dataset.

Parameters
[in]datasetName of the dataset
[in]ratePercentage of points to be deleted, 0 ≤ rate ≤ 1
[in]saveBoolean which indicates whether the new dataset will be saved in Hermes
[in]new_dataset_nameThe name with which the transformed dataset will be stored in Hermes
[in]csv_fileBoolean which indicates whether the new dataset will exported in a cvs format (traj_new.txt)
Returns
Interger 1 to indicate succesfull completion