Class Chi2CTClassification

java.lang.Object
clickTrainDetector.classification.simplechi2classifier.Chi2CTClassification
All Implemented Interfaces:
CTClassification

public class Chi2CTClassification extends Object implements CTClassification
Class to hold basic classification data for a click train. This usually acts as the Default simple classification. Most other classifications should sublcass this.
Author:
Jamie Macaulay
  • Constructor Details

    • Chi2CTClassification

      public Chi2CTClassification(int speciesCode)
    • Chi2CTClassification

      public Chi2CTClassification(String jsonstring)
      Create the classification from a JSON string
      Parameters:
      jsonstring - - the json string.
      clickTrainControl - - the click train control.
  • Method Details

    • getSpeciesID

      public int getSpeciesID()
      Description copied from interface: CTClassification
      Get the species ID for the classifier. 0 is unassigned and will results in the click train being deleted . >0 means the click train has been classified. invalid input: '<'0 means that the click train has been detected but not classified.
      Specified by:
      getSpeciesID in interface CTClassification
      Returns:
      the species ID for the classifier.
    • getSummaryString

      public String getSummaryString()
      Description copied from interface: CTClassification
      Get summary string for classifiers.
      Specified by:
      getSummaryString in interface CTClassification
      Returns:
      a string summary of classifiers.
    • getClassifierType

      public CTClassifierType getClassifierType()
      Description copied from interface: CTClassification
      The classifier type
      Specified by:
      getClassifierType in interface CTClassification
      Returns:
      the classifier type
    • getJSONLogging

      public ClassifierJSONLogging getJSONLogging()
      Description copied from interface: CTClassification
      Get string logging for the classifier.
      Specified by:
      getJSONLogging in interface CTClassification
      Returns:
      the JSON logging