Class IterableStd<V>
- java.lang.Object
-
- org.tensorics.core.scalar.lang.ScalarSupport<V>
-
- org.tensorics.core.iterable.operations.IterableStd<V>
-
- Type Parameters:
V
- the type of the scalars (elements of the field on which the standard deviation will be based)
- All Implemented Interfaces:
java.util.function.Function<java.lang.Iterable<V>,V>
,BasicOperationSupport<V>
,Conversion<java.lang.Iterable<V>,V>
,IterableOperation<V>
public class IterableStd<V> extends ScalarSupport<V> implements IterableOperation<V>
An operation that takes and iterable of a certain type of values (for which a field has to be provided) and calculates the standard deviation out of it.For the definition of the standard deviation, have a look at wikipedia.
-
-
Constructor Summary
Constructors Constructor Description IterableStd(ExtendedField<V> field)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
apply(java.lang.Iterable<V> values)
Has to implement the conversion logic to convert the given object into an object of type R.-
Methods inherited from class org.tensorics.core.scalar.lang.ScalarSupport
absoluteValueOf, calculate, countOf, field, inverseOf, negativeOf, one, squareOf, squareRootOf, testIf, two, zero
-
-
-
-
Constructor Detail
-
IterableStd
public IterableStd(ExtendedField<V> field)
-
-
Method Detail
-
apply
public V apply(java.lang.Iterable<V> values)
Description copied from interface:Conversion
Has to implement the conversion logic to convert the given object into an object of type R.
-
-