Schnittstelle IStatisticalConainer<E>
- Typparameter:
E- is the type of the elements aIStatisticalConainer.
- Alle bekannten Unterschnittstellen:
IArrayList<E>,ICachingContainer<E>,IContainer<E>,ILinkedList<E>,IMatrix<E>
- Alle bekannten Implementierungsklassen:
ArrayList,ArrayView,CachingContainer,Container,ContainerView,ContainerView,GapMatrix,ImmutableList,IterableView,LinkedList,Matrix,MatrixColumn,MatrixRow,MultiContainerView
public interface IStatisticalConainer<E>
- Version:
- 2023-10-30
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungdoublegetAverage(Function<E, Number> norm) doublegetAverageOrZero(Function<E, Number> norm) intgetCount()intint<C extends Comparable<C>>
CdoublegetMaxOrZero(Function<E, Number> norm) doubledoublegetMedianOrZero(Function<E, Number> norm) <C extends Comparable<C>>
CdoublegetMinOrZero(Function<E, Number> norm) doublegetStandardDeviation(Function<E, Number> norm) getSumOfIntegers(ToIntFunction<E> norm) doublegetVariance(Function<E, Number> norm)
-
Methodendetails
-
getAverage
- Parameter:
norm-- Gibt zurück:
- the average of the values the given norm returns from the elements of
the current
IStatisticalConainer. - Löst aus:
RuntimeException- if the currentIStatisticalConaineris empty.
-
getAverageOrZero
- Parameter:
norm-- Gibt zurück:
- the average of the values the given norm returns from the elements of
the current
IStatisticalConainerif the currentIStatisticalConainercontains elements, 0.0 otherwise.
-
getCount
int getCount()- Gibt zurück:
- the number of elements of the current
IStatisticalConainer.
-
getCount
- Parameter:
selector-- Gibt zurück:
- the number of elements the given selector selects from the current
IStatisticalConainer.
-
getCount
- Parameter:
element-- Gibt zurück:
- the number how many times the current
IStatisticalConainercontains the given element.
-
getMax
- Typparameter:
C- is the type of theComparables the given norm returns.- Parameter:
norm-- Gibt zurück:
- the biggest
Comparablethe given norm returns from the elements of the currentIStatisticalConainer. - Löst aus:
RuntimeException- if the currentIStatisticalConaineris empty.
-
getMaxOrZero
- Parameter:
norm-- Gibt zurück:
- the biggest value the given norm returns from the elements of the
current
IStatisticalConainerif the currentIStatisticalConainercontains elements, 0.0 otherwise.
-
getMedian
- Parameter:
norm-- Gibt zurück:
- the median of the values the given norm returns from the elements of
the current
IStatisticalConainer. - Löst aus:
RuntimeException- if the currentIStatisticalConaineris empty.
-
getMedianOrZero
- Parameter:
norm-- Gibt zurück:
- the median of the values the given norm returns from the elements of
the current
IStatisticalConainerif the currentIStatisticalConainercontains elements, 0.0 otherwise.
-
getMin
- Typparameter:
C- is the type of theComparables the given norm returns.- Parameter:
norm-- Gibt zurück:
- the smallest
Comparablethe given norm returns from the elements of the currentIStatisticalConainer. - Löst aus:
RuntimeException- if the currentIStatisticalConaineris empty.
-
getMinOrZero
- Parameter:
norm-- Gibt zurück:
- the smallest value the given norm returns from the elements of the
current
IStatisticalConainerif the currentIStatisticalConainercontains elements, 0.0 otherwise.
-
getStandardDeviation
- Parameter:
norm-- Gibt zurück:
- the standard deviation of the values the given norm returns from the
elements of the current
IStatisticalConainer. - Löst aus:
RuntimeException- if the currentIStatisticalConaineris empty.
-
getSum
- Parameter:
norm-- Gibt zurück:
- the sum of the values the given norm returns from the elements of the
current
IStatisticalConainer.
-
getSumOfIntegers
- Parameter:
norm-- Gibt zurück:
- the sum of the integers the given norm returns from the elements of
the current
IStatisticalConainer.
-
getVariance
- Parameter:
norm-- Gibt zurück:
- the variance of the values the given norm returns from the elements
of the current
IStatisticalConainer. - Löst aus:
RuntimeException- if the currentIStatisticalConaineris empty.
-