public class LevelCrossingCount extends Histogram
This implementation uses no exceptions to determine the residuum values. That means every closed hysterese will be counted.
There are other methods described in the book of Erwin Haibach / Betriebsfestigkeit 2. Auflage Chapter 3.3.4. A cycle that uses the whole range of the classes is counted when no subcycles are in there only.
original text:
Das Klassendurchgangsverfahren
Beim Überschreiten jeweils einer Schwelle (Klassengrenze) wird eine Zählung ausgelöst.
In den positiven Klassen werden alle von der Berzugsgrenze weg ins Positive gerichteten
Klassendurchgänge gezählt, in den negativen Klassen alle von der Bezugslinie weg ins Negative
gerichteten Klassendurchgänge.
Die Durchgänge durch die Bezugslinie sollen in der ersten positiven Klasse gezählt werden.
ImplementationIF
,
Serialized FormHistogram.Extrema
INCREASE, isClassMaximumValid, isClassMinimumValid, parameters
Constructor and Description |
---|
LevelCrossingCount(double[] values,
double min,
double max)
Build the LevelCrossingCount object using double values.
|
LevelCrossingCount(float[] values,
double min,
double max)
Build the LevelCrossingCount object using float values.
|
LevelCrossingCount(int[] values,
double min,
double max)
Build the LevelCrossingCount object using int values.
|
LevelCrossingCount(long[] values,
double min,
double max)
Build the LevelCrossingCount object using long values.
|
LevelCrossingCount(short[] values,
double min,
double max)
Build the LevelCrossingCount object using short values.
|
Modifier and Type | Method and Description |
---|---|
void |
calculate()
calculate the LevelCrossingCount column.
|
protected void |
count(short[] arr,
int zero)
Do the counting of the classified data.
|
int[] |
getMatrix()
Get the histogram matrix.
|
double |
getZero()
Get the zero level.
|
static void |
main(java.lang.String[] args)
The main testing method.
|
void |
setZero(double zero)
Set the zero value.
|
java.lang.String |
toString() |
getClasses, getClasses, getClasses, getClasses, getClasses, getClassMaximum, getClassMinimum, getFilterWidthRelative, getMaximum, getMinimum, getNumberOfBins, getParameters, getUnit, setClassMaximum, setClassMinimum, setFilterWidthRelative, setMaximum, setMinimum, setNumberOfBins, setParameters, setUnit
public LevelCrossingCount(double[] values, double min, double max)
values
- the value.min
- the minimum of the values,
if maximum and minimum is equal the method will determine it again.max
- the maximum of the values,
if maximum and minimum is equal the method will determine it again.public LevelCrossingCount(float[] values, double min, double max)
values
- the value.min
- the minimum of the values,
if maximum and minimum is equal the method will determine it again.max
- the maximum of the values,
if maximum and minimum is equal the method will determine it again.public LevelCrossingCount(long[] values, double min, double max)
values
- the value.min
- the minimum of the values,
if maximum and minimum is equal the method will determine it again.max
- the maximum of the values,
if maximum and minimum is equal the method will determine it again.public LevelCrossingCount(int[] values, double min, double max)
values
- the value.min
- the minimum of the values,
if maximum and minimum is equal the method will determine it again.max
- the maximum of the values,
if maximum and minimum is equal the method will determine it again.public LevelCrossingCount(short[] values, double min, double max)
values
- the value.min
- the minimum of the values,
if maximum and minimum is equal the method will determine it again.max
- the maximum of the values,
if maximum and minimum is equal the method will determine it again.public void setZero(double zero)
zero
- the zero value.public double getZero()
public void calculate()
protected void count(short[] arr, int zero)
arr
- the classified data.zero
- the zero level.public int[] getMatrix()
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)
args
- the command line argument (not used)