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 Summary
Modifier and TypeFieldDescriptiondouble[]
Deprecated.double
The error value.double
Get the scaling value for the MHT variable.double
The minimum error value allowed.The name of the MHT variable.static final double
Default scale factor for amplitude in dB.static final double
Default scale factor for Bearing in radians.static final double
Default scale factor for ICI.static final double
Default scale factor for ICI in seconds.static final double
Default scale factor for peak frequency in Hertz.static final double
Default scale factor for ICI. -
Constructor Summary
ConstructorDescriptionSimpleChi2VarParams
(String name) Constructor for the simple MHT variable parameters.SimpleChi2VarParams
(String name, String unitString) Constructor for the simple MHT variable parameters.SimpleChi2VarParams
(String name, String unitString, double error, double minError) Constructor for the simple MHT variable parameters.SimpleChi2VarParams
(String name, String unitString, double error, double minError, double errorScaleValue) Constructor for the simple MHT variable parameters. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Get a set of data that describes all of the parameters in a classgetUnits()
Get the units string for the SimpleChi2Var.This method was added just so that the unitString field would be automatically included in the XML output in the getParameterSet method.toString()
-
Field Details
-
SCALE_FACTOR_ICI
public static final double SCALE_FACTOR_ICIDefault scale factor for ICI in seconds.- See Also:
-
SCALE_FACTOR_BEARING
public static final double SCALE_FACTOR_BEARINGDefault scale factor for Bearing in radians. -
SCALE_FACTOR_AMPLITUDE
public static final double SCALE_FACTOR_AMPLITUDEDefault scale factor for amplitude in dB.- See Also:
-
SCALE_FACTOR_PFREQ
public static final double SCALE_FACTOR_PFREQDefault scale factor for peak frequency in Hertz.- See Also:
-
SCALE_FACTOR_CORRELATION
public static final double SCALE_FACTOR_CORRELATIONDefault scale factor for ICI.- See Also:
-
SCALE_FACTOR_TIMEDELAYS
public static final double SCALE_FACTOR_TIMEDELAYSDefault scale factor for ICI.- See Also:
-
name
The name of the MHT variable. -
error
public double errorThe error value. This changes the relevance of the particular chi2 val. -
minError
public double minErrorThe minimum error value allowed. This is used if error*ICI invalid input: '<' minError. -
errorScaleValue
public double errorScaleValueGet 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
Deprecated.The limits in which a user can change the slider. Only used with GUI for slider
-
-
Constructor Details
-
SimpleChi2VarParams
Constructor for the simple MHT variable parameters.- Parameters:
name
- - the name of the variable
-
SimpleChi2VarParams
Constructor for the simple MHT variable parameters.- Parameters:
name
- - the name of the variableunitString
- - the units of the variable.
-
SimpleChi2VarParams
Constructor for the simple MHT variable parameters.- Parameters:
name
- - the name of the variableunitString
- -the units of the variable.error
- - the standard error in the variableminError
- - the absolute minimum error (after error is multiplied by IDI)
-
SimpleChi2VarParams
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 variableunitString
- -the units of the variable.error
- - the standard error in the variableminError
- - 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
-
clone
-
getUnits
Get the units string for the SimpleChi2Var.- Returns:
- the units string e.g. dB, degrees, s, etc.
-
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
-
getParameterSet
Description copied from interface:ManagedParameters
Get a set of data that describes all of the parameters in a class- Specified by:
getParameterSet
in interfaceManagedParameters
- Returns:
- description of the parameters in a class.
-