Class Sample
- java.lang.Object
-
- io.heraldprox.herald.sensor.analysis.Sample
-
public class Sample extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(double x)
void
add(double x, long f)
void
add(Sample distribution)
long
count()
java.lang.Double
distance(Sample sample)
java.lang.Double
max()
java.lang.Double
mean()
java.lang.Double
min()
java.lang.Double
standardDeviation()
java.lang.String
toString()
java.lang.Double
variance()
-
-
-
Method Detail
-
add
public void add(double x)
-
add
public void add(double x, long f)
-
add
public void add(@NonNull Sample distribution)
-
count
public long count()
-
mean
@Nullable public java.lang.Double mean()
-
variance
@Nullable public java.lang.Double variance()
-
standardDeviation
@Nullable public java.lang.Double standardDeviation()
-
min
@Nullable public java.lang.Double min()
-
max
@Nullable public java.lang.Double max()
-
distance
@Nullable public java.lang.Double distance(@NonNull Sample sample)
-
toString
@NonNull public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-