package utils
import "gopkg.in/neurosnap/sentences.v1/utils"
Index ¶
Types ¶
type FreqDist ¶
A frequency distribution for the outcomes of an experiment. A frequency distribution records the number of times each outcome of an experiment has occurred. For example, a frequency distribution could be used to record the frequency of each word type in a document. Formally, a frequency distribution can be defined as a function mapping from each sample to the number of times that sample occurred as an outcome. Frequency distributions are generally constructed by running a number of experiments, and incrementing the count for a sample every time it is an outcome of an experiment.
func NewFreqDist ¶
func (*FreqDist) B ¶
B returns the total number of sample values (or "bins") that have counts greater than zero.
func (*FreqDist) N ¶
N returns the total number of sample outcomes that have been recorded by this FreqDist.
Source Files ¶
frequency_dist.go
- Version
- v1.0.7 (latest)
- Published
- May 26, 2021
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 8 minutes ago –
Tools for package owners.