Class BinCollection
- Namespace
- Balsam.FactorAnalysis
- Assembly
- Balsam.Backtester.dll
Encapsulates a collection of bins, typically covering the entire range of data.
public class BinCollection : IEnumerable<Bin>, IEnumerable
- Inheritance
-
BinCollection
- Implements
- Inherited Members
- Extension Methods
Constructors
BinCollection(IEnumerable<Bin>)
Instantiates a new BinCollection using the specified bins.
public BinCollection(IEnumerable<Bin> bins)
Parameters
bins
IEnumerable<Bin>
Properties
Avg
Gets/sets the average value across all bins.
public double Avg { get; set; }
Property Value
IsMonotonic
Gets whether the average value of each bin is strictly ascending or descending.
public bool IsMonotonic { get; }
Property Value
Name
Gets/sets a name (typically long, short, or all).
public string Name { get; set; }
Property Value
Methods
GetBin(double)
Returns the bin number (1 to N) for the specified value or -1 if the value is not within the overall range.
public int GetBin(double value)
Parameters
value
double
Returns
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<Bin> GetEnumerator()
Returns
Print()
Prints the results to the console.
public void Print()