- java.lang.Object
-
- ij.util.ArrayUtil
-
public class ArrayUtil extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getMaximum()
The maximum valuedouble
getMean()
Average valuedouble
getMinimum()
The minimum valuedouble
getVariance()
Variance valueboolean
isMaximum(double val)
double
medianSort()
The median (sorted array)boolean
putValue(int pos, float value)
put a value to a indexvoid
setSize(int si)
void
sort()
java.lang.String
toString()
information to be displayed
-
-
-
Method Detail
-
setSize
public void setSize(int si)
-
putValue
public boolean putValue(int pos, float value)
put a value to a index- Parameters:
pos
- position in the arrayvalue
- value to put- Returns:
- false if position does not exist
-
getMean
public double getMean()
Average value- Returns:
- average value
-
medianSort
public double medianSort()
The median (sorted array)- Returns:
- mediane
-
sort
public void sort()
-
isMaximum
public boolean isMaximum(double val)
-
getMinimum
public double getMinimum()
The minimum value- Returns:
- min value
-
getMaximum
public double getMaximum()
The maximum value- Returns:
- max value
-
getVariance
public double getVariance()
Variance value- Returns:
- variance
-
toString
public java.lang.String toString()
information to be displayed- Overrides:
toString
in classjava.lang.Object
- Returns:
- text
-
-