Machinekit Documentation
HAL Component — STATS
INSTANTIABLE COMPONENTS — General
All instantiable components can be loaded in two manners
Using loadrt with or without count= | names= parameters as per legacy components
Using newinst, which names the instance and allows further parameters and arguments
primarily pincount= which can set the number of pins created for that instance (where applicable)
NAME
stats — compute mean and variance of a value
SYNOPSIS
stats
USAGE SYNOPSIS
loadrt stats
OR
newinst stats <newinstname> [ pincount=N | iprefix=prefix ] [instanceparamX=X | argX=X ]
( args in [ ] denote possible args and parameters, may not be used in all components )
FUNCTIONS
stats.N.funct ( OR <newinstname>.funct (requires a floating-point thread) )
PINS
stats.N.in float in ( OR <newinstname>.in float in )
stats.N.enable bit in ( OR <newinstname>.enable bit in )
stats.N.mean float out ( OR <newinstname>.mean float out )
stats.N.variance float out ( OR <newinstname>.variance float out )
stats.N.n u32 out ( OR <newinstname>.n u32 out )
LICENCE
GPL