Class ImmutableAngleSample
AngleSample
.
Use the builder to create immutable instances:
ImmutableAngleSample.builder()
.
Use the static factory method to create immutable instances:
ImmutableAngleSample.of()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableAngleSample
. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableAngleSample.Builder
builder()
Creates a builder forImmutableAngleSample
.double
double
double
protected TrigonometricMoment
cm2()
static ImmutableAngleSample
copyOf
(AngleSample instance) Creates an immutable copy of aAngleSample
value.data()
boolean
This instance is equal to all instances ofImmutableAngleSample
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:data
.double
kurtosis()
double
double
static ImmutableAngleSample
of
(Collection<Angle> data) Construct a new immutableAngleSample
instance.double
skewness()
protected TrigonometricMoment
um1()
protected TrigonometricMoment
um2()
final ImmutableAngleSample
withData
(Collection<Angle> value) Copy the current immutable object by setting a value for thedata
attribute.Methods inherited from class pl.poznan.put.circular.samples.AngleSample
check, circularRank, toString
-
Method Details
-
data
- Specified by:
data
in classAngleSample
- Returns:
- The collection of values in the sample.
-
withData
Copy the current immutable object by setting a value for thedata
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for data- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableAngleSample
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:data
. -
meanDirection
Returns a lazily initialized value of the
meanDirection
attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Overrides:
meanDirection
in classAngleSample
- Returns:
- A lazily initialized value of the
meanDirection
attribute
-
meanResultantLength
public double meanResultantLength()Returns a lazily initialized value of the
meanResultantLength
attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Overrides:
meanResultantLength
in classAngleSample
- Returns:
- A lazily initialized value of the
meanResultantLength
attribute
-
circularVariance
public double circularVariance()Returns a lazily initialized value of the
circularVariance
attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Overrides:
circularVariance
in classAngleSample
- Returns:
- A lazily initialized value of the
circularVariance
attribute
-
circularStandardDeviation
public double circularStandardDeviation()Returns a lazily initialized value of the
circularStandardDeviation
attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Overrides:
circularStandardDeviation
in classAngleSample
- Returns:
- A lazily initialized value of the
circularStandardDeviation
attribute
-
circularDispersion
public double circularDispersion()Returns a lazily initialized value of the
circularDispersion
attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Overrides:
circularDispersion
in classAngleSample
- Returns:
- A lazily initialized value of the
circularDispersion
attribute
-
skewness
public double skewness()Returns a lazily initialized value of the
skewness
attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Overrides:
skewness
in classAngleSample
- Returns:
- A lazily initialized value of the
skewness
attribute
-
kurtosis
public double kurtosis()Returns a lazily initialized value of the
kurtosis
attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Overrides:
kurtosis
in classAngleSample
- Returns:
- A lazily initialized value of the
kurtosis
attribute
-
medianDirection
Returns a lazily initialized value of the
medianDirection
attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Overrides:
medianDirection
in classAngleSample
- Returns:
- A lazily initialized value of the
medianDirection
attribute
-
meanDeviation
public double meanDeviation()Returns a lazily initialized value of the
meanDeviation
attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Overrides:
meanDeviation
in classAngleSample
- Returns:
- A lazily initialized value of the
meanDeviation
attribute
-
medianAndMeanDeviation
Returns a lazily initialized value of the
medianAndMeanDeviation
attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Overrides:
medianAndMeanDeviation
in classAngleSample
- Returns:
- A lazily initialized value of the
medianAndMeanDeviation
attribute
-
sortedData
Returns a lazily initialized value of the
sortedData
attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Overrides:
sortedData
in classAngleSample
- Returns:
- A lazily initialized value of the
sortedData
attribute
-
um1
Returns a lazily initialized value of the
um1
attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Overrides:
um1
in classAngleSample
- Returns:
- A lazily initialized value of the
um1
attribute
-
cm2
Returns a lazily initialized value of the
cm2
attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Overrides:
cm2
in classAngleSample
- Returns:
- A lazily initialized value of the
cm2
attribute
-
um2
Returns a lazily initialized value of the
um2
attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Overrides:
um2
in classAngleSample
- Returns:
- A lazily initialized value of the
um2
attribute
-
of
Construct a new immutableAngleSample
instance.- Parameters:
data
- The value for thedata
attribute- Returns:
- An immutable AngleSample instance
-
copyOf
Creates an immutable copy of aAngleSample
value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance
- The instance to copy- Returns:
- A copied immutable AngleSample instance
-
builder
Creates a builder forImmutableAngleSample
.ImmutableAngleSample.builder() .data(Collection<pl.poznan.put.circular.Angle>) // required
data
.build();- Returns:
- A new ImmutableAngleSample builder
-