public class EventCount extends Histogram
LevelCrossingCount
,
Serialized FormHistogram.Extrema
INCREASE, isClassMaximumValid, isClassMinimumValid, parameters
Constructor and Description |
---|
EventCount(double[] values,
double min,
double max)
Build the rainflow obejct using double values.
|
EventCount(float[] values,
double min,
double max)
Build the rainflow obejct using float values.
|
EventCount(int[] values,
double min,
double max)
Build the rainflow obejct using int values.
|
EventCount(long[] values,
double min,
double max)
Build the rainflow obejct using long values.
|
EventCount(short[] values,
double min,
double max)
Build the rainflow obejct using short values.
|
Modifier and Type | Method and Description |
---|---|
void |
calculate()
calculate the rainflow matrix.
|
protected void |
count(short[] arr)
Do the counting of the classified data.
|
int[] |
getMatrix()
Get the histogram matrix.
|
static void |
main(java.lang.String[] args)
The main testing method.
|
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 EventCount(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 EventCount(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 EventCount(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 EventCount(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 EventCount(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 calculate()
protected void count(short[] arr)
arr
- the classified data.public int[] getMatrix()
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)