Class SimpleChi2VarParams

java.lang.Object
clickTrainDetector.clickTrainAlgorithms.mht.mhtvar.SimpleChi2VarParams
All Implemented Interfaces:
Serializable, Cloneable, ManagedParameters
Direct Known Subclasses:
AmplitudeChi2Params, BearingChi2VarParams, CorrelationChi2Params, IDIChi2Params, TimeDelayParams

public class SimpleChi2VarParams extends Object implements Serializable, Cloneable, ManagedParameters
Parameters class for a simple chi2 variable. Contains the expected error in the variable, the minimum the erro can be (to stop near infintie chi^2 values) and the scaling factor for the error for creating user friendly controls.
Author:
Jamie Macaulay
See Also:
  • Field Details Link icon

    • SCALE_FACTOR_ICI Link icon

      public static final double SCALE_FACTOR_ICI
      Default scale factor for ICI in seconds.
      See Also:
    • SCALE_FACTOR_BEARING Link icon

      public static final double SCALE_FACTOR_BEARING
      Default scale factor for Bearing in radians.
    • SCALE_FACTOR_AMPLITUDE Link icon

      public static final double SCALE_FACTOR_AMPLITUDE
      Default scale factor for amplitude in dB.
      See Also:
    • SCALE_FACTOR_PFREQ Link icon

      public static final double SCALE_FACTOR_PFREQ
      Default scale factor for peak frequency in Hertz.
      See Also:
    • SCALE_FACTOR_CORRELATION Link icon

      public static final double SCALE_FACTOR_CORRELATION
      Default scale factor for ICI.
      See Also:
    • SCALE_FACTOR_TIMEDELAYS Link icon

      public static final double SCALE_FACTOR_TIMEDELAYS
      Default scale factor for ICI.
      See Also:
    • name Link icon

      public String name
      The name of the MHT variable.
    • error Link icon

      public double error
      The error value. This changes the relevance of the particular chi2 val.
    • minError Link icon

      public double minError
      The minimum error value allowed. This is used if error*ICI invalid input: '<' minError.
    • errorScaleValue Link icon

      public double errorScaleValue
      Get the scaling value for the MHT variable. The scaling value is used to set the scale for input controls so that users can set relative rather than absolute errors. It's essentially a guess at the standard error. So for example it might be 10 for amplitude because it's on the dB scale and perhaps 0.01 for the ICI value because the units are in seconds.
    • errLimits Link icon

      @Deprecated public double[] errLimits
      Deprecated.
      The limits in which a user can change the slider. Only used with GUI for slider
  • Constructor Details Link icon

    • SimpleChi2VarParams Link icon

      public SimpleChi2VarParams(String name)
      Constructor for the simple MHT variable parameters.
      Parameters:
      name - - the name of the variable
    • SimpleChi2VarParams Link icon

      public SimpleChi2VarParams(String name, String unitString)
      Constructor for the simple MHT variable parameters.
      Parameters:
      name - - the name of the variable
      unitString - - the units of the variable.
    • SimpleChi2VarParams Link icon

      public SimpleChi2VarParams(String name, String unitString, double error, double minError)
      Constructor for the simple MHT variable parameters.
      Parameters:
      name - - the name of the variable
      unitString - -the units of the variable.
      error - - the standard error in the variable
      minError - - the absolute minimum error (after error is multiplied by IDI)
    • SimpleChi2VarParams Link icon

      public SimpleChi2VarParams(String name, String unitString, double error, double minError, double errorScaleValue)
      Constructor for the simple MHT variable parameters.
      Parameters:
      name - - the name of the variable
      unitString - -the units of the variable.
      error - - the standard error in the variable
      minError - - the absolute minimum error (after error is multiplied by IDI)
      errorScaleValue - - the error scale value. Should be close to the mean or median error you would expect for a species. Used for controls. Not used in the algorithm.
  • Method Details Link icon

    • clone Link icon

      public SimpleChi2VarParams clone()
    • getUnits Link icon

      public String getUnits()
      Get the units string for the SimpleChi2Var.
      Returns:
      the units string e.g. dB, degrees, s, etc.
    • getUnitString Link icon

      public String getUnitString()
      This method was added just so that the unitString field would be automatically included in the XML output in the getParameterSet method.
      Returns:
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object
    • getParameterSet Link icon

      public PamParameterSet getParameterSet()
      Description copied from interface: ManagedParameters
      Get a set of data that describes all of the parameters in a class
      Specified by:
      getParameterSet in interface ManagedParameters
      Returns:
      description of the parameters in a class.