TrajectoryClassifier

Class representing a set of known, named trajectories to which Trajectories can be added and using which Trajectories can be recognized.

Hierarchy

  • TrajectoryClassifier

Index

Methods

addTrajectoryToClassification

Find examples in Playground
  • addTrajectoryToClassification(trajectory: Trajectory, classification: string): void
  • 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

classifyTrajectory

Find examples in Playground
  • 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

deleteClassification

Find examples in Playground
  • deleteClassification(classification: string): boolean
  • Remove a known named trajectory and all Trajectories associated with it.

    Parameters

    • classification: string

      name to remove

    Returns boolean

    whether anything was removed

serialize

Find examples in Playground
  • serialize(): string
  • Serialize to JSON.

    Returns string

    JSON serialization

Static Deserialize

Find examples in Playground
  • Deserialize from JSON.

    Parameters

    • json: string

      JSON serialization

    Returns TrajectoryClassifier

    deserialized TrajectorySet

Static Generate

Find examples in Playground
  • 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

Generated using TypeDoc