Description Usage Format Details Examples
The river where you set your foot just now is gone – those waters giving way to this, now this. —Heraclitus
1 |
An object of class R6ClassGenerator
of length 24.
A moment_stream
object is an R6
object with
reference semantics. Rather than calculating the mean and variance on a
complete data set, which is difficult when the data does not fit in memory
or when only parts of it are available, moment_stream
s use Welford's
online algorithm to calculate these values during a single pass through the
data (which can then be discarded if no other summary statistics are needed).
A stream can be monitored by creating an object with
stream_name = moment_stream$new()
, and the mean and variance can be
calculated as new data comes in using stream_name$update(x)
. The
sample mean is stored in stream_name$m
and the sample variance is
stored in stream_name$v_hat
.
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.