Class SmoothedWindow<E>
Smoothed window of some value. Also, unity cannot detect code coverage stats for generic classes. Going to ignore metrics for this class.
Namespace: nickmaltbie.OpenKCC.Utils
Assembly: cs.temp.dll.dll
Syntax
public class SmoothedWindow<E>
Type Parameters
Name | Description |
---|---|
E |
Constructors
SmoothedWindow(Int32)
Create a smoothed window.
Declaration
public SmoothedWindow(int size)
Parameters
Type | Name | Description |
---|---|---|
Int32 | size | Size of smoothing window. |
Properties
Count
Count of
Declaration
public int Count { get; protected set; }
Property Value
Type | Description |
---|---|
Int32 |
CurrentIdx
Gets the current selected index.
Declaration
protected int CurrentIdx { get; }
Property Value
Type | Description |
---|---|
Int32 |
Samples
Gets the sample values.
Declaration
protected E[] Samples { get; }
Property Value
Type | Description |
---|---|
E[] |
Methods
AddSample(E)
Adds a sample to the smoothing window at the next available space. Will overwrite data if any data is there.
Declaration
public virtual E AddSample(E value)
Parameters
Type | Name | Description |
---|---|---|
E | value | Value to add. |
Returns
Type | Description |
---|---|
E | Previous value removed. |