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
,ArrayReadContainer
,CachingContainer
,CompressedList
,Container
,GapMatrix
,ImmutableList
,IterableReadContainer
,LinkedList
,Matrix
,MatrixColumn
,MatrixRow
,MultiReadContainer
,ReadContainer
public interface IStatisticalConainer<E>
- Version:
- 2023-10-30
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungdouble
getAverage
(Function<E, Number> norm) double
getAverageOrZero
(Function<E, Number> norm) int
getCount()
int
int
<C extends Comparable<C>>
Cdouble
getMaxOrZero
(Function<E, Number> norm) double
double
getMedianOrZero
(Function<E, Number> norm) <C extends Comparable<C>>
Cdouble
getMinOrZero
(Function<E, Number> norm) double
getStandardDeviation
(Function<E, Number> norm) getSumOfIntegers
(ToIntFunction<E> norm) double
getVariance
(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 currentIStatisticalConainer
is empty.
-
getAverageOrZero
- Parameter:
norm
-- Gibt zurück:
- the average of the values the given norm returns from the elements of
the current
IStatisticalConainer
if the currentIStatisticalConainer
contains 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
IStatisticalConainer
contains the given element.
-
getMax
- Typparameter:
C
- is the type of theComparable
s the given norm returns.- Parameter:
norm
-- Gibt zurück:
- the biggest
Comparable
the given norm returns from the elements of the currentIStatisticalConainer
. - Löst aus:
RuntimeException
- if the currentIStatisticalConainer
is empty.
-
getMaxOrZero
- Parameter:
norm
-- Gibt zurück:
- the biggest value the given norm returns from the elements of the
current
IStatisticalConainer
if the currentIStatisticalConainer
contains 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 currentIStatisticalConainer
is empty.
-
getMedianOrZero
- Parameter:
norm
-- Gibt zurück:
- the median of the values the given norm returns from the elements of
the current
IStatisticalConainer
if the currentIStatisticalConainer
contains elements, 0.0 otherwise.
-
getMin
- Typparameter:
C
- is the type of theComparable
s the given norm returns.- Parameter:
norm
-- Gibt zurück:
- the smallest
Comparable
the given norm returns from the elements of the currentIStatisticalConainer
. - Löst aus:
RuntimeException
- if the currentIStatisticalConainer
is empty.
-
getMinOrZero
- Parameter:
norm
-- Gibt zurück:
- the smallest value the given norm returns from the elements of the
current
IStatisticalConainer
if the currentIStatisticalConainer
contains 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 currentIStatisticalConainer
is 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 currentIStatisticalConainer
is empty.
-