UserDefinedDistributionCalculator

StockSharp.Xaml.Charting.Model.DataSeries

Allows user provided flags for IsSortedAscending and IsEvenlySpaced, flags which are used to determine the correct algorithm for sorting, searching and data-compression in Ultrachart. Overridding these flags allows for faster operation where the data distribution is known in advance

Inherits: BaseDataDistributionCalculator<T>

Constructors

UserDefinedDistributionCalculator
public UserDefinedDistributionCalculator()
userDefinedDistributionCalculator = UserDefinedDistributionCalculator()

Initializes a new instance of the UserDefinedDistributionCalculator class.

Properties

IsEvenlySpaced
public bool IsEvenlySpaced { get; set; }
value = userDefinedDistributionCalculator.IsEvenlySpaced
userDefinedDistributionCalculator.IsEvenlySpaced = value

Gets or sets if the data is evenly spaced, within a visual epsilon (typically 1.0/8000.0 of the default spacing)

IsSortedAscending
public bool IsSortedAscending { get; set; }
value = userDefinedDistributionCalculator.IsSortedAscending
userDefinedDistributionCalculator.IsSortedAscending = value

Gets or sets if the data is sorted

Methods

OnAppendXValue
public override void OnAppendXValue(ISeriesColumn<TX> xValues, TX newXValue, bool acceptsUnsortedData)
userDefinedDistributionCalculator.OnAppendXValue(xValues, newXValue, acceptsUnsortedData)

Called when X Values are appended. Should update the Data Distribution flags

xValues
The x values.
newXValue
The new x value.
acceptsUnsortedData
if set to true the series accepts unsorted data.
OnAppendXValues
public override void OnAppendXValues(ISeriesColumn<TX> xValues, int countBeforeAppending, IEnumerable<TX> newXValues, bool acceptsUnsortedData)
userDefinedDistributionCalculator.OnAppendXValues(xValues, countBeforeAppending, newXValues, acceptsUnsortedData)

Called when X Values are appended. Should update the Data Distribution flags

xValues
The x values.
countBeforeAppending
newXValues
acceptsUnsortedData
if set to true the series accepts unsorted data.
OnInsertXValue
public override void OnInsertXValue(ISeriesColumn<TX> xValues, int indexWhereInserted, TX newXValue, bool acceptsUnsortedData)
userDefinedDistributionCalculator.OnInsertXValue(xValues, indexWhereInserted, newXValue, acceptsUnsortedData)

Called when X Values are inserted. Should update the Data Distribution flags

xValues
The x values.
indexWhereInserted
newXValue
The new x value.
acceptsUnsortedData
if set to true the series accepts unsorted data.
OnInsertXValues
public override void OnInsertXValues(ISeriesColumn<TX> xValues, int indexWhereInserted, int insertedCount, IEnumerable<TX> newXValues, bool acceptsUnsortedData)
userDefinedDistributionCalculator.OnInsertXValues(xValues, indexWhereInserted, insertedCount, newXValues, acceptsUnsortedData)

Called when X Values are inserted. Should update the Data Distribution flags

xValues
The x values.
indexWhereInserted
insertedCount
newXValues
acceptsUnsortedData
if set to true the series accepts unsorted data.