avg
molecule.boilerplate.api.KeywordsStable.avg
trait avg extends AggrCoalesce
Average of attribute values.
Apply avg
keyword to attribute to return average of attribute values of entities matching the molecule.
for {
_ <- Match.sKeywords.insert(1, 2, 4)
_ <- Match.score(avg).get.map(_.head ==> 2.3333333333333335) // (1 + 2 + 4) / 3
} yield ()
Attributes
- Returns
-
Double
- Source
- Keywords.scala
- Graph
-
- Supertypes
- Known subtypes
-
object avg.type
In this article