Navigation :
Envision Language
Lokad Platform
Envision Gallery
Envision Reference
- Glossary
- Tile syntax
- List of icons
- StyleCode sub-language
-
_
-
A-B-C
-- abs
-- actionrwd.dampen
-- actionrwd.demand
-- actionrwd.reward
-- actionrwd.segment
-- all
-- and
-- any
-- areSame
-- argfirst
-- arglast
-- argmax
-- argmin
-- arground
-- argwhichever
-- as
-- assert
-- assertfail
-- assoc.quantity
-- at
-- auto
-- autodiff
-- avg
-- barchart
-- boolean
-- Built-in Tables
-- by
-- canonical
-- cdf
-- ceiling
-- changed
-- chart
-- complement
-- concat
-- connected
-- const
-- constant
-- consume
-- contains
-- containsAny
-- containsCount
-- cos
-- count
-- cross
-- crps
-- cumsub
-- cumsum
-- currentDashUrl
-
D-E-F
-
G-H-I
-
J-K-L
-
M-N-O
-
P-Q-R
-
S-T-U
-
V-W-X
-
Y-Z
Envision Specifications
Library
Legacy
avg
avg(T.a : number) 🡒 number, autodiff aggregator
The aggregator returns the numerical average of the grouped numbers.
table T = with
[| as A, as B |]
[| 0, "a" |]
[| 0, "a" |]
[| 0, "b" |]
[| 1, "b" |]
[| 1, "c" |]
table G[gdim] = by T.B
where T.B != "c"
show table "" a1b4 with
gdim
avg(T.A)
group by gdim
The aggregator returns 0
on empty groups.
avg(T.a : number) 🡒 number, montecarlo accumulator
The accumulator returns the numerical average of the observed samples.
r = poisson(3)
montecarlo 1000 with
deviate = random.ranvar(r)
sample mean = avg(deviate)
show scalar "Average" with mean // 2.93