mirror of
https://github.com/PAMGuard/PAMGuard.git
synced 2024-11-22 07:02:29 +00:00
50 lines
1.0 KiB
Java
50 lines
1.0 KiB
Java
package RightWhaleEdgeDetector;
|
|
|
|
import java.io.Serializable;
|
|
|
|
import PamModel.parametermanager.ManagedParameters;
|
|
import PamModel.parametermanager.PamParameterSet;
|
|
import PamModel.parametermanager.PamParameterSet.ParameterSetType;
|
|
|
|
public class RWEParameters implements Serializable, Cloneable, ManagedParameters {
|
|
|
|
public static final long serialVersionUID = 0L;
|
|
|
|
public String dataSourceName;
|
|
|
|
public int channelMap;
|
|
|
|
public double startFreq = 0;
|
|
|
|
public double endFreq = 1000;
|
|
|
|
public double[] backgroundConst = {16, 160};
|
|
|
|
public double threshold = 4;
|
|
|
|
public int maxSoundGap = 1;
|
|
|
|
public int maxFrequencyGap = 1;
|
|
|
|
public int minSoundType = 5;
|
|
|
|
public boolean downThreshold = false;
|
|
|
|
@Override
|
|
protected RWEParameters clone() {
|
|
try {
|
|
return (RWEParameters) super.clone();
|
|
} catch (CloneNotSupportedException e) {
|
|
e.printStackTrace();
|
|
return null;
|
|
}
|
|
}
|
|
|
|
@Override
|
|
public PamParameterSet getParameterSet() {
|
|
PamParameterSet ps = PamParameterSet.autoGenerate(this, ParameterSetType.DETECTOR);
|
|
return ps;
|
|
}
|
|
|
|
}
|