Class TrajectoryClassifier
Hierarchy
- TrajectoryClassifier
Index
Methods
add Trajectory To ClassificationSearch playground for addTrajectoryToClassification
Add a new Trajectory to the set with a given name.
Parameters
trajectory: Trajectory
new Trajectory to be added
classification: string
name to which to add the Trajectory
Returns void
classify TrajectorySearch playground for classifyTrajectory
Attempt to recognize a Trajectory from among all the classifications already known to the classifier.
Parameters
trajectory: Trajectory
Trajectory to be recognized
Returns Nullable<string>
classification of Trajectory if recognized, null otherwise
delete ClassificationSearch playground for deleteClassification
Remove a known named trajectory and all Trajectories associated with it.
Parameters
classification: string
name to remove
Returns boolean
whether anything was removed
serializeSearch playground for serialize
Serialize to JSON.
Returns string
JSON serialization
Static DeserializeSearch playground for Deserialize
Deserialize from JSON.
Parameters
json: string
JSON serialization
Returns TrajectoryClassifier
deserialized TrajectorySet
Static GenerateSearch playground for Generate
Initialize a new empty TrajectorySet with auto-generated Alphabets. VERY naive, need to be generating these things from known sets. Better version later, probably eliminating this one.
Returns TrajectoryClassifier
auto-generated TrajectorySet
Class representing a set of known, named trajectories to which Trajectories can be added and using which Trajectories can be recognized.