Packagede.popforge.math
Classpublic class RMS

The RMS class represents the root-mean-square of a set of values (window) with a given width.



Public Properties
 PropertyDefined by
  sum : Number
[read-only] The sum of all values.
RMS
  value : Number
[read-only] The root-mean-squared value of the sum.
RMS
  width : uint
[read-only] The width of the window.
RMS
Public Methods
 MethodDefined by
  
RMS(width:uint)
Creates a new RMS object.
RMS
  
reset():void
Resets the sum and window.
RMS
  
update(value:Number):void
Updates the sum of the values based on the window width.
RMS
Property detail
sumproperty
sum:Number  [read-only]

The sum of all values.

Implementation
    public function get sum():Number
valueproperty 
value:Number  [read-only]

The root-mean-squared value of the sum.

Implementation
    public function get value():Number
widthproperty 
width:uint  [read-only]

The width of the window.

Implementation
    public function get width():uint
Constructor detail
RMS()constructor
public function RMS(width:uint)

Creates a new RMS object.

Parameters
width:uint — The width of the window.
Method detail
reset()method
public function reset():void

Resets the sum and window.

update()method 
public function update(value:Number):void

Updates the sum of the values based on the window width.

Parameters
value:Number — The new sample to insert.