### Range Property Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.Bin.html Gets the numerical range associated with this bin. ```APIDOC ## Range Property ### Description The range. ### Signature ```csharp public Range Range { get; } ``` ### Property Value (Range) - A discrete count of items which fall into a given range. ``` -------------------------------- ### LeastSquares.M Property Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.LeastSquares.html Gets the M coefficient (slope) for the equation y = Mx + B. ```csharp public readonly double M { get; } ``` -------------------------------- ### ItemCount RepresentativeValue Property Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.ItemCount-1.html Gets the value represented by the bin. ```csharp public T RepresentativeValue { get; } ``` -------------------------------- ### LeastSquares.B Property Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.LeastSquares.html Gets the B coefficient (y-intercept) for the equation y = Mx + B. ```csharp public readonly double B { get; } ``` -------------------------------- ### Bin Range Property Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.Bin.html Gets the range of values that this bin represents. The Range property provides the minimum and maximum bounds for the bin. ```csharp public Range Range { get; } ``` -------------------------------- ### MaxInclusive Property Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.Bin.html Gets a value indicating whether the maximum value of the range is inclusive for this bin. ```APIDOC ## MaxInclusive Property ### Description Determines whether Max should be included or excluded in the range. ### Signature ```csharp public bool MaxInclusive { get; } ``` ### Property Value (bool) - A discrete count of items which fall into a given range. ``` -------------------------------- ### ItemCount Count Property Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.ItemCount-1.html Gets the number of times the RepresentativeValue appears in the source data. ```csharp public int Count { get; } ``` -------------------------------- ### LeastSquares.RSquared Property Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.LeastSquares.html Gets the R-squared correlation coefficient, indicating the goodness of fit for the least squares model. ```csharp public readonly double RSquared { get; } ``` -------------------------------- ### Bin MaxInclusive Property Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.Bin.html Gets a value indicating whether the maximum value of the range is included in the bin. This property determines the inclusivity of the upper bound of the bin's range. ```csharp public bool MaxInclusive { get; } ``` -------------------------------- ### Bin Constructor Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.Bin.html Initializes a new instance of the Bin class. Use this constructor to create a bin with a representative value, range boundaries, item count, and an option for maximum inclusivity. ```csharp public Bin(double v, double min, double max, int count, bool maxInclusive = false) ``` -------------------------------- ### Bin Constructor Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.Bin.html Initializes a new instance of the Bin class with a representative value, range boundaries, item count, and an option to include the maximum value in the range. ```APIDOC ## Bin Constructor ### Description Initializes a new instance of the Bin class. ### Signature ```csharp public Bin(double v, double min, double max, int count, bool maxInclusive = false) ``` ### Parameters * **v** (double) - Representative value for the Bin. * **min** (double) - The minimum value of the Range. * **max** (double) - The maximum value of the range. * **count** (int) - The number of items in the Bin. * **maxInclusive** (bool) - Should Max be included in the Range or excluded - default is excluded. ``` -------------------------------- ### ToString Method Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.Bin.html Returns a string representation of this Bin instance. ```APIDOC ## ToString Method ### Description Returns a string representation of this Bin instance. ### Signature ```csharp public override string ToString() ``` ### Returns (string) - A string that represents the current Bin. ``` -------------------------------- ### Equals Method (object) Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.Bin.html Compares this Bin instance to an object for equality. ```APIDOC ## Equals Method (object) ### Description Compares this Bin instance to an object for equality. ### Signature ```csharp public override bool Equals(object obj) ``` ### Parameters * **obj** (object) - The object to compare with the current Bin. ### Returns (bool) - True if the specified object is equal to the current Bin; otherwise, false. ``` -------------------------------- ### Equals Method (Bin) Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.Bin.html Compares this Bin instance to another Bin object for equality. ```APIDOC ## Equals Method (Bin) ### Description Compares this Bin instance to another Bin object for equality. ### Signature ```csharp public bool Equals(Bin other) ``` ### Parameters * **other** (Bin) - The Bin to compare with the current object. ### Returns (bool) - True if the specified Bin is equal to the current Bin; otherwise, false. ``` -------------------------------- ### LeastSquares.ToString(IFormatProvider) Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.LeastSquares.html Returns a string representation of the LeastSquares instance using the specified format provider. ```csharp public readonly string ToString(IFormatProvider provider) ``` -------------------------------- ### LeastSquares.ToString(string, IFormatProvider) Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.LeastSquares.html Returns a string representation of the LeastSquares instance using the specified format and format provider. ```csharp public readonly string ToString(string format, IFormatProvider formatProvider) ``` -------------------------------- ### GetHashCode Method Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.Bin.html Returns the hash code for this Bin instance. ```APIDOC ## GetHashCode Method ### Description Returns the hash code for this Bin instance. ### Signature ```csharp public override int GetHashCode() ``` ### Returns (int) - A hash code for the current Bin. ``` -------------------------------- ### LeastSquares Constructor (m, b) Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.LeastSquares.html Initializes a new instance of the LeastSquares struct with the slope and intercept. ```csharp public LeastSquares(double m, double b) ``` -------------------------------- ### LeastSquares.ToString(string) Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.LeastSquares.html Returns a string representation of the LeastSquares instance using the specified format. ```csharp public readonly string ToString(string format) ``` -------------------------------- ### LeastSquares.SolveForX(double) Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.LeastSquares.html Calculates the X value using the stored M and B coefficients for a given Y value (x = (y - b) / m). ```csharp public readonly double SolveForX(double y) ``` -------------------------------- ### LeastSquares Constructor (m, b, r2) Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.LeastSquares.html Initializes a new instance of the LeastSquares struct with the slope, intercept, and R-squared value. ```csharp public LeastSquares(double m, double b, double r2) ``` -------------------------------- ### Bin Equals Method (Bin) Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.Bin.html Compares this Bin instance to another Bin object for equality. This method checks if two Bin objects represent the same range and count. ```csharp public bool Equals(Bin other) ``` -------------------------------- ### LeastSquares.ToString() Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.LeastSquares.html Returns a string representation of the LeastSquares instance. ```csharp public override readonly string ToString() ``` -------------------------------- ### ItemCount Constructor Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.ItemCount-1.html Initializes a new instance of the ItemCount class with a specified value and its count. ```csharp public ItemCount(T v, int count) ``` -------------------------------- ### LeastSquares.GetHashCode() Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.LeastSquares.html Returns a hash code for the current instance, suitable for use in hash tables and other collection types. ```csharp public override readonly int GetHashCode() ``` -------------------------------- ### LeastSquares.ToFunc(LeastSquares) Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.LeastSquares.html Converts a LeastSquares instance into a Func that can be used to solve for Y given X. ```csharp public static Func ToFunc(LeastSquares ls) ``` -------------------------------- ### LeastSquares Methods Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.LeastSquares.html Methods available on the LeastSquares struct. ```APIDOC ## Methods ### Equals(LeastSquares) Equals(T) ```csharp public readonly bool Equals(LeastSquares other) ``` #### Parameters - **other** (LeastSquares) - The LeastSquares instance to compare to. #### Returns bool - True if other has equal m and b values. ### Equals(object) Equals(object) ```csharp public override readonly bool Equals(object obj) ``` #### Parameters - **obj** (object) - The object to compare to. #### Returns bool - True if obj is a LeastSquares and has equal m and b values. ### GetHashCode() GetHashCode() ```csharp public override readonly int GetHashCode() ``` #### Returns int - Hash code of the instance. ### IsNaN(LeastSquares) Determines if the LeastSquares argument has Not a Number elements ```csharp public static bool IsNaN(LeastSquares ls) ``` #### Parameters - **ls** (LeastSquares) - The LeastSquares instance to check. #### Returns bool - True if either M, B or RSquared is NaN. ### Solve(double) Uses the calculated coefficients to solve Y for inputted X. ```csharp public readonly double Solve(double x) ``` #### Parameters - **x** (double) - X value to solve for. #### Returns double - Y value (y = Mx + B). ### SolveForX(double) Uses the calculated coefficients to solve X for inputted Y. ```csharp public readonly double SolveForX(double y) ``` #### Parameters - **y** (double) - Y value to solve for. #### Returns double - X value (x = (y - b) / m). ### ToFunc(LeastSquares) Casts a LeastSqaures to a Function Solve(double). ```csharp public static Func ToFunc(LeastSquares ls) ``` #### Parameters - **ls** (LeastSquares) - The LeastSquares instance. #### Returns Func - A function that solves for Y given X. ### ToString() ```csharp public override readonly string ToString() ``` #### Returns string ### ToString(IFormatProvider) ```csharp public readonly string ToString(IFormatProvider provider) ``` #### Parameters - **provider** (IFormatProvider) #### Returns string ### ToString(string) ```csharp public readonly string ToString(string format) ``` #### Parameters - **format** (string) #### Returns string ### ToString(string, IFormatProvider) ```csharp public readonly string ToString(string format, IFormatProvider formatProvider) ``` #### Parameters - **format** (string) - **formatProvider** (IFormatProvider) #### Returns string ``` -------------------------------- ### ItemCount Constructor Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.ItemCount-1.html Initializes a new instance of the ItemCount class with a specified value and its count. ```APIDOC ## ItemCount(T v, int count) ### Description Represents the count of an item in a collection. ### Parameters - **v** (T) - The value of the item. - **count** (int) - The number of times the item appears. ``` -------------------------------- ### Range ToString Methods Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.Range-1.html Provides string representations of the Range instance with various formatting options. ```APIDOC ## ToString() ### Description Returns a string representation of the range. ### Returns string - A string representation of the range. ## ToString(IFormatProvider provider) ### Parameters - `provider` (IFormatProvider) ### Returns string ## ToString(string format) ### Parameters - `format` (string) ### Returns string ## ToString(string format, IFormatProvider formatProvider) ### Parameters - `format` (string) - `formatProvider` (IFormatProvider) ### Returns string ``` -------------------------------- ### ItemCount Equals Method (ItemCount) Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.ItemCount-1.html Compares the current ItemCount object with another ItemCount object for equality. ```csharp public bool Equals(ItemCount other) ``` -------------------------------- ### Equality Operator (==) Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.Bin.html Compares two Bin objects for equality. ```APIDOC ## Equality Operator (==) ### Description Compares two Bin objects for equality. ### Signature ```csharp public static bool operator ==(Bin lhs, Bin rhs) ``` ### Parameters * **lhs** (Bin) - The left-hand side operand. * **rhs** (Bin) - The right-hand side operand. ### Returns (bool) - True if the two bins are equal; otherwise, false. ``` -------------------------------- ### Range Equality Methods Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.Range-1.html Methods for checking equality between Range instances. ```APIDOC ## Equals(Range other) ### Description Indicates whether the current object is equal to another object of the same type. ### Parameters - `other` (Range) - An object to compare with this object. ### Returns bool - true if the current object is equal to the `other` parameter; otherwise, false. ## Equals(object obj) ### Description Indicates whether this instance and a specified object are equal. ### Parameters - `obj` (object) - Another object to compare to. ### Returns bool - true if `obj` and this instance are the same type and represent the same value; otherwise, false. ``` -------------------------------- ### LeastSquares.Solve(double) Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.LeastSquares.html Calculates the Y value using the stored M and B coefficients for a given X value (y = Mx + B). ```csharp public readonly double Solve(double x) ``` -------------------------------- ### ItemCount ToString Method Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.ItemCount-1.html Returns a string representation of the ItemCount object. ```csharp public override string ToString() ``` -------------------------------- ### Inequality Operator (!=) Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.Bin.html Compares two Bin objects for inequality. ```APIDOC ## Inequality Operator (!=) ### Description Compares two Bin objects for inequality. ### Signature ```csharp public static bool operator !=(Bin lhs, Bin rhs) ``` ### Parameters * **lhs** (Bin) - The left-hand side operand. * **rhs** (Bin) - The right-hand side operand. ### Returns (bool) - True if the two bins are not equal; otherwise, false. ``` -------------------------------- ### Range Comparison Methods Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.Range-1.html Methods for comparing Range instances with other ranges or objects. ```APIDOC ## CompareTo(Range other) ### Description Compares the current object with another object of the same type. ### Parameters - `other` (Range) - An object to compare with this object. ### Returns int - A value indicating the relative order of the objects being compared. ## CompareTo(object obj) ### Description Compares the current object with another object. ### Parameters - `obj` (object) - An object to compare with this object. ### Returns int - A value indicating the relative order of the objects being compared. ``` -------------------------------- ### ItemCount Equals Method (object) Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.ItemCount-1.html Compares the current ItemCount object with another object for equality. Returns true if obj is a Bin{T} and Value and Count are equal. ```csharp public override bool Equals(object obj) ``` -------------------------------- ### Range Constructors Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.Range-1.html Initializes a new instance of the Range struct with specified minimum and maximum values. ```APIDOC ## Range(T min, T max) ### Description Initializes a new instance of the Range struct. ### Parameters - `min` (T) - The minimal value of segment. - `max` (T) - The maximal value of segment. ``` -------------------------------- ### LeastSquares.Equals(LeastSquares) Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.LeastSquares.html Checks if this LeastSquares instance has equal m and b values to another LeastSquares instance. ```csharp public readonly bool Equals(LeastSquares other) ``` -------------------------------- ### ItemCount GetHashCode Method Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.ItemCount-1.html Returns a hash code for the ItemCount object, based on its Value and Count. ```csharp public override int GetHashCode() ``` -------------------------------- ### LeastSquares Constructors Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.LeastSquares.html Constructors for the LeastSquares struct. ```APIDOC ## LeastSquares(double m, double b) ### Description Initializes a new instance of the LeastSquares struct with the specified slope and intercept. ### Parameters - **m** (double) - The slope. - **b** (double) - The intercept. ## LeastSquares(double m, double b, double r2) ### Description Initializes a new instance of the LeastSquares struct with the specified slope, intercept, and R-squared value. ### Parameters - **m** (double) - The slope. - **b** (double) - The intercept. - **r2** (double) - The R Squared correlation coefficient. ``` -------------------------------- ### LeastSquares Fields and Properties Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.LeastSquares.html Static field and properties of the LeastSquares struct. ```APIDOC ## Fields ### Empty Empty instance - returned when EnumerableStats.LeastSquares is passed a singular matrix. All members are zero. ```csharp public static readonly LeastSquares Empty ``` #### Field Value LeastSquares ## Properties ### B B Coefficient for y = Mx + B (i.e. y intercept) ```csharp public readonly double B { get; } ``` #### Property Value double ### M M Coefficient for y = Mx + B (i.e. slope) ```csharp public readonly double M { get; } ``` #### Property Value double ### RSquared The R Squared correlation coefficient ```csharp public readonly double RSquared { get; } ``` #### Property Value double ``` -------------------------------- ### Range HashCode Method Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.Range-1.html Generates a hash code for the Range instance. ```APIDOC ## GetHashCode() ### Description Returns the hash code for this instance. ### Returns int - A 32-bit signed integer that is the hash code for this instance. ``` -------------------------------- ### ItemCount Methods Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.ItemCount-1.html Provides methods for comparing and representing ItemCount objects. ```APIDOC ## Equals(ItemCount other) ### Description Checks if this ItemCount is equal to another ItemCount object. ### Parameters - **other** (ItemCount) - The ItemCount object to compare with. ### Returns (bool) True if the objects are equal; otherwise, false. ``` ```APIDOC ## Equals(object obj) ### Description Checks if this ItemCount is equal to an object. ### Parameters - **obj** (object) - The object to compare to. ### Returns (bool) True if obj is an ItemCount and its Value and Count are equal; otherwise, false. ``` ```APIDOC ## GetHashCode() ### Description Returns a hash code for the ItemCount object. ### Returns (int) A hash code representing the Value and Count. ``` ```APIDOC ## ToString() ### Description Returns a string representation of the ItemCount object. ### Returns (string) A string that represents the current object. ``` -------------------------------- ### LeastSquares.Equals(object) Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.LeastSquares.html Checks if the specified object is a LeastSquares instance and has equal m and b values to this instance. ```csharp public override readonly bool Equals(object obj) ``` -------------------------------- ### ItemCount Inequality Operator (!=) Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.ItemCount-1.html Compares two ItemCount objects for inequality. ```csharp public static bool operator !=(ItemCount lhs, ItemCount rhs) ``` -------------------------------- ### Bin Equality Operator Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.Bin.html Compares two Bin objects for equality. This operator checks if two bins have the same representative value, range, and count. ```csharp public static bool operator ==(Bin lhs, Bin rhs) ``` -------------------------------- ### Range Properties Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.Range-1.html Provides access to the maximum and minimum values of the range. ```APIDOC ## Max Property ### Description Gets the maximal value of segment. ### Property Value T - The Max. ## Min Property ### Description Gets the minimal value of segment. ### Property Value T - The Min. ``` -------------------------------- ### Enum BinningMode Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.BinningMode.html Controls how the range of the bins are determined. ```APIDOC ## Enum BinningMode Namespace LinqStatistics Assembly LinqStatistics.dll Controls how the range of the bins are determined ```csharp public enum BinningMode ``` ### Fields `ExpandRange = 2` The total range will be expanded such that the min is less then the sequence min and max is greater then the sequence max The number of bins will be equal to (max - min) / (binCount - 1) in essence adding an extra bin and shrinking the bin size `MaxValueInclusive = 1` The minimum will be the sequnce min and the maximxum equal to sequence max The last bin will max inclusive instead of exclusive `Unbounded = 0` The minimum will be equal to the sequence min and the maximum equal to infinity ``` -------------------------------- ### LeastSquares operator != Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.LeastSquares.html Compares two LeastSquares instances for inequality. They are unequal if any of their M, B, or RSquared values differ. ```csharp public static bool operator !=(LeastSquares lhs, LeastSquares rhs) ``` -------------------------------- ### ItemCount Equality Operator (==) Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.ItemCount-1.html Compares two ItemCount objects for equality. ```csharp public static bool operator ==(ItemCount lhs, ItemCount rhs) ``` -------------------------------- ### LeastSquares.Empty Field Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.LeastSquares.html Provides an empty instance of LeastSquares, typically returned when a singular matrix is encountered. All members are zero. ```csharp public static readonly LeastSquares Empty ``` -------------------------------- ### LeastSquares operator == Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.LeastSquares.html Compares two LeastSquares instances for equality. They are equal if their M, B, and RSquared values are equal. ```csharp public static bool operator ==(LeastSquares lhs, LeastSquares rhs) ``` -------------------------------- ### ItemCount Class Definition Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.ItemCount-1.html Defines the structure for an item and its associated count. ```csharp public class ItemCount : IEquatable> ``` -------------------------------- ### LeastSquares Operators Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.LeastSquares.html Operator overloads for the LeastSquares struct. ```APIDOC ## Operators ### operator ==(LeastSquares, LeastSquares) Equality operator (M, B and RSquared must be equal). ```csharp public static bool operator ==(LeastSquares lhs, LeastSquares rhs) ``` #### Parameters - **lhs** (LeastSquares) - **rhs** (LeastSquares) #### Returns bool ### implicit operator Func(LeastSquares) Casts a LeastSqaures to a Function Solve(double). ```csharp public static implicit operator Func(LeastSquares ls) ``` #### Parameters - **ls** (LeastSquares) - The LeastSquares instance. #### Returns Func - A function that solves for Y given X. ### operator !=(LeastSquares, LeastSquares) Inequality operatory. ```csharp public static bool operator !=(LeastSquares lhs, LeastSquares rhs) ``` #### Parameters - **lhs** (LeastSquares) - **rhs** (LeastSquares) #### Returns bool ``` -------------------------------- ### Range Operators Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.Range-1.html Overloaded operators for comparing Range instances. ```APIDOC ## operator ==(Range first, Range second) ### Parameters - `first` (Range) - `second` (Range) ### Returns bool ## operator >(Range first, Range second) ### Parameters - `first` (Range) - `second` (Range) ### Returns bool ## operator >=(Range first, Range second) ### Parameters - `first` (Range) - `second` (Range) ### Returns bool ## operator !=(Range first, Range second) ### Parameters - `first` (Range) - `second` (Range) ### Returns bool ## operator <(Range first, Range second) ### Parameters - `first` (Range) - `second` (Range) ### Returns bool ## operator <=(Range first, Range second) ### Parameters - `first` (Range) - `second` (Range) ### Returns bool ``` -------------------------------- ### ItemCount Operators Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.ItemCount-1.html Provides overloaded operators for comparing ItemCount objects. ```APIDOC ## operator ==(ItemCount lhs, ItemCount rhs) ### Description Compares two ItemCount objects for equality. ### Parameters - **lhs** (ItemCount) - The left-hand side operand. - **rhs** (ItemCount) - The right-hand side operand. ### Returns (bool) True if the two objects are equal; otherwise, false. ``` ```APIDOC ## operator !=(ItemCount lhs, ItemCount rhs) ### Description Compares two ItemCount objects for inequality. ### Parameters - **lhs** (ItemCount) - The left-hand side operand. - **rhs** (ItemCount) - The right-hand side operand. ### Returns (bool) True if the two objects are not equal; otherwise, false. ``` -------------------------------- ### ItemCount Properties Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.ItemCount-1.html Provides access to the properties of an ItemCount object. ```APIDOC ## Count ### Description The number of times RepresentativeValue appears in the source data. ### Property Value (int) The count of the item. ``` ```APIDOC ## RepresentativeValue ### Description The value represented by the bin. ### Property Value (T) The item's value. ``` -------------------------------- ### Contains Method Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.Bin.html Checks if a given double value falls within the range of this bin, considering the inclusivity of the maximum value. ```APIDOC ## Contains Method ### Description Determines if a value is contained within the segment. ### Signature ```csharp public bool Contains(double item) ``` ### Parameters * **item** (double) - The item to check. ### Returns (bool) - True if item is contained in the range - taking into account MaxInclusive. ``` -------------------------------- ### Bin Contains Method Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.Bin.html Determines whether a specified value falls within the range of this bin. The check considers the MaxInclusive property to decide if the maximum value is part of the range. ```csharp public bool Contains(double item) ``` -------------------------------- ### Bin Inequality Operator Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.Bin.html Compares two Bin objects for inequality. This operator checks if two bins differ in their representative value, range, or count. ```csharp public static bool operator !=(Bin lhs, Bin rhs) ``` -------------------------------- ### BinningMode Enum Definition Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.BinningMode.html Defines the enumeration for controlling how the range of bins is determined. Use ExpandRange to ensure min/max are outside the sequence range, MaxValueInclusive to include the sequence max in the last bin, and Unbounded for an open-ended maximum. ```csharp public enum BinningMode ``` -------------------------------- ### LeastSquares implicit operator Func Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.LeastSquares.html Implicitly casts a LeastSquares instance to a Func that solves for Y given X. ```csharp public static implicit operator Func(LeastSquares ls) ``` -------------------------------- ### LeastSquares Equality Operator Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.LeastSquares.html Compares two LeastSquares objects for equality. Returns true if they are equal, false otherwise. ```APIDOC ## LeastSquares Equality Operator ### Description Compares two `LeastSquares` objects for equality. Returns `true` if they are equal, `false` otherwise. ### Method `operator ==` ### Parameters #### Path Parameters - **lhs** (LeastSquares) - The left-hand side operand. - **rhs** (LeastSquares) - The right-hand side operand. ### Returns - **bool** - `true` if the `LeastSquares` objects are equal, `false` otherwise. ``` -------------------------------- ### LeastSquares.IsNaN(LeastSquares) Source: https://dkackman.github.io/LinqStatistics/api/LinqStatistics.LeastSquares.html Determines if any of the M, B, or RSquared values in the provided LeastSquares instance are NaN (Not a Number). ```csharp public static bool IsNaN(LeastSquares ls) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.