Options
All
  • Public
  • Public/Protected
  • All
Menu

Class 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

addTrajectoryToClassificationSearch playground for addTrajectoryToClassification

  • 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

classifyTrajectorySearch 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

deleteClassificationSearch playground for deleteClassification

  • 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

serializeSearch playground for serialize

  • serialize(): string
  • 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

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method