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

The file implements trajectory transformation by adding outliers. More...

Functions

integer trajectory_transformation_add_noise (text dataset, float rate, float distance, boolean save=true, text new_dataset_name="transformed", boolean csv_file=true)
 This function performs trajectory transformation by adding noise points (outliers) to the initial trajectory. More...
 

Detailed Description

The file implements trajectory transformation by adding outliers.

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_add_noise ( text  dataset,
float  rate,
float  distance,
boolean  save = true,
text  new_dataset_name = "transformed",
boolean  csv_file = true 
)

This function performs trajectory transformation by adding noise points (outliers) to the initial trajectory.

Parameters
[in]datasetName of the dataset
[in]ratePercentage of points to be added, 0 ≤ rate ≤ 1
[in]distanceFloat which indicates the maximum distance of the outlier from the trajectory
[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