Sports Lib API - v17.3.0
GitHub
npm
Preparing search index...
API
StatsUtilities
Class StatsUtilities
Index
Constructors
constructor
Methods
aggregate
Numeric
Records
average
get
Finite
Numeric
Record
Value
get
Finite
Numeric
Value
get
Finite
Stat
Value
max
min
serialize
Stats
sum
weighted
Average
Constructors
constructor
new
StatsUtilities
()
:
StatsUtilities
Returns
StatsUtilities
Methods
Static
aggregate
Numeric
Records
aggregateNumericRecords
(
records
:
readonly
unknown
[]
,
aggregations
:
readonly
NumericRecordAggregation
[]
,
)
:
Record
<
string
,
number
>
Parameters
records
:
readonly
unknown
[]
aggregations
:
readonly
NumericRecordAggregation
[]
Returns
Record
<
string
,
number
>
Static
average
average
(
sources
:
Pick
<
StatsClassInterface
,
"getStat"
>
[]
,
statType
:
string
,
)
:
number
|
null
Parameters
sources
:
Pick
<
StatsClassInterface
,
"getStat"
>
[]
statType
:
string
Returns
number
|
null
Static
get
Finite
Numeric
Record
Value
getFiniteNumericRecordValue
(
source
:
unknown
,
keys
:
readonly
string
[]
,
)
:
number
|
null
Parameters
source
:
unknown
keys
:
readonly
string
[]
Returns
number
|
null
Static
get
Finite
Numeric
Value
getFiniteNumericValue
(
value
:
unknown
)
:
number
|
null
Parameters
value
:
unknown
Returns
number
|
null
Static
get
Finite
Stat
Value
getFiniteStatValue
(
source
:
Pick
<
StatsClassInterface
,
"getStat"
>
,
statType
:
string
,
)
:
number
|
null
Parameters
source
:
Pick
<
StatsClassInterface
,
"getStat"
>
statType
:
string
Returns
number
|
null
Static
max
max
(
sources
:
Pick
<
StatsClassInterface
,
"getStat"
>
[]
,
statType
:
string
,
)
:
number
|
null
Parameters
sources
:
Pick
<
StatsClassInterface
,
"getStat"
>
[]
statType
:
string
Returns
number
|
null
Static
min
min
(
sources
:
Pick
<
StatsClassInterface
,
"getStat"
>
[]
,
statType
:
string
,
)
:
number
|
null
Parameters
sources
:
Pick
<
StatsClassInterface
,
"getStat"
>
[]
statType
:
string
Returns
number
|
null
Static
serialize
Stats
serializeStats
(
stats
:
Map
<
string
,
DataInterface
<
DefaultDataValue
>
>
,
)
:
DataJSONInterface
Parameters
stats
:
Map
<
string
,
DataInterface
<
DefaultDataValue
>
>
Returns
DataJSONInterface
Static
sum
sum
(
sources
:
Pick
<
StatsClassInterface
,
"getStat"
>
[]
,
statType
:
string
,
)
:
number
|
null
Parameters
sources
:
Pick
<
StatsClassInterface
,
"getStat"
>
[]
statType
:
string
Returns
number
|
null
Static
weighted
Average
weightedAverage
(
sources
:
Pick
<
StatsClassInterface
,
"getStat"
>
[]
,
valueStatType
:
string
,
weightStatType
:
string
,
)
:
number
|
null
Parameters
sources
:
Pick
<
StatsClassInterface
,
"getStat"
>
[]
valueStatType
:
string
weightStatType
:
string
Returns
number
|
null
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
aggregate
Numeric
Records
average
get
Finite
Numeric
Record
Value
get
Finite
Numeric
Value
get
Finite
Stat
Value
max
min
serialize
Stats
sum
weighted
Average
GitHub
npm
Sports Lib API - v17.3.0
Loading...