vcorelib.math.analysis package#
Subpackages#
Submodules#
vcorelib.math.analysis.average module#
A module for working with averages.
- class vcorelib.math.analysis.average.MovingAverage(depth: int = 10, initial: float = 0.0)[source]#
Bases:
object
A class for managing a moving average of floats.
- resize(depth: int, initial: float = 0.0) None [source]#
Set a new depth for this moving average and reset the value.
- property saturated: bool#
Determine if the buffer is saturated with elements yet.
- class vcorelib.math.analysis.average.MovingSum(depth: int = 10, initial: float = 0.0)[source]#
Bases:
FloatBuffer
A simple moving sum implementation.
vcorelib.math.analysis.buffer module#
A simple circular buffer for floating-point numbers.
- class vcorelib.math.analysis.buffer.FloatBuffer(depth: int = 10, initial: float = 0.0)[source]#
Bases:
object
A class implementing a simple circular buffer for floats.
- resize(depth: int, initial: float = 0.0) None [source]#
Set a new depth for this buffer average and reset the values.
- property saturated: bool#
Determine if the buffer is saturated with elements yet.
vcorelib.math.analysis.weighted module#
A module for implementing a weighted average.
Module contents#
A module for aggregating symbols for import.
- class vcorelib.math.analysis.FloatBuffer(depth: int = 10, initial: float = 0.0)[source]#
Bases:
object
A class implementing a simple circular buffer for floats.
- resize(depth: int, initial: float = 0.0) None [source]#
Set a new depth for this buffer average and reset the values.
- property saturated: bool#
Determine if the buffer is saturated with elements yet.
- class vcorelib.math.analysis.MovingAverage(depth: int = 10, initial: float = 0.0)[source]#
Bases:
object
A class for managing a moving average of floats.
- resize(depth: int, initial: float = 0.0) None [source]#
Set a new depth for this moving average and reset the value.
- property saturated: bool#
Determine if the buffer is saturated with elements yet.
- class vcorelib.math.analysis.MovingSum(depth: int = 10, initial: float = 0.0)[source]#
Bases:
FloatBuffer
A simple moving sum implementation.