Assembly: OpenTD.Results.dll A DerivedDataArray that returns a weighted average value across its InputCollection for each record. DataArrays in the InputCollection must all be the same length and have the same data subtype. Note: if IgnoreNaNInCalculations is true, NaN in input and weighting arrays will be treated as 0.0.
Inheritance
object ← DataArray ← DerivedDataArray ← OneSubtypeDerivedDataArray ← WeightedAverageDataArrayImplements
IEnumerable<double>, IEnumerableInherited Members
OneSubtypeDerivedDataArray.SetDerivedData(), OneSubtypeDerivedDataArray.CheckData(), DerivedDataArray.InputCollection, DerivedDataArray.IgnoreNaNInCalculations, DerivedDataArray.SourceDataset, DerivedDataArray.SourceItem, DerivedDataArray.GetValues(UnitsData), DerivedDataArray.Count, DerivedDataArray.this[int], DerivedDataArray.GetSelfSuggestedName(), DerivedDataArray.SetDerivedData(), DerivedDataArray.CheckData(), DataArray.SetValues(IEnumerable<double>, DataSubtype, UnitsData, ItemIdentifier), DataArray.SourceDataset, DataArray.SourceItem, DataArray.Subtype, DataArray.SourceDataItem, DataArray.Dimension, DataArray.IsInteger, DataArray.GetValues(), DataArray.GetValues(UnitsData), DataArray.Count, DataArray.this[int], DataArray.ValuesSI, DataArray.CheckData(), DataArray.AutoNamer, DataArray.Name, DataArray.InternalSuggestedName, DataArray.GetSelfSuggestedName(), DataArray.ToString(), DataArray.AutoCommenter, DataArray.Comment, DataArray.InternalSuggestedComment, DataArray.GetSelfSuggestedComment(), DataArray.GetEnumerator(), object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()Constructors
WeightedAverageDataArray(DataSubtype, DataSubtype, ItemIdentifierCollection, IDataset)
Create a new WeightedAverageDataArray using data and weighting data from a single dataset. The weighting arrays will be read at each record.Parameters
dataSubtype DataSubtype
weightingSubtype DataSubtype
itemIdentifiers ItemIdentifierCollection
dataset IDataset
WeightedAverageDataArray(DataArrayCollection)
Parameters
inputCollection DataArrayCollection