Class TrajectoryClassifier
Methods
add Trajectory To Classification
-
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
- trajectory: Trajectory
classify Trajectory
-
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
- trajectory: Trajectory
delete Classification
-
Remove a known named trajectory and all Trajectories associated with it.
Parameters
- classification: string
name to remove
Returns boolean
whether anything was removed
- classification: string
serialize
-
Serialize to JSON.
Returns string
JSON serialization
StaticDeserialize
-
Deserialize from JSON.
Parameters
- json: string
JSON serialization
Returns TrajectoryClassifier
deserialized TrajectorySet
- json: string
StaticGenerate
-
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.