IPointResampler_Old

StockSharp.Xaml.Charting.Numerics

Properties

ResamplingMode
public ResamplingMode ResamplingMode { get; }
value = iPointResampler_Old.ResamplingMode

Gets the current Resampling Mode.

Resolution
public int Resolution { get; }
value = iPointResampler_Old.Resolution

Gets the current resolution. This must be greater than equal to 2 and the higher the number, the larger the reduced datasets

Methods

ReducePoints
public IList ReducePoints(IList inputPoints, int viewportWidth)
result = iPointResampler_Old.ReducePoints(inputPoints, viewportWidth)

Reduces the input points using the current ResamplingMode and Resolution

inputPoints
viewportWidth
ReducePoints
public IList ReducePoints(IList inputPoints, IndexRange pointIndices, int viewportWidth)
result = iPointResampler_Old.ReducePoints(inputPoints, pointIndices, viewportWidth)

Reduces the input points using the current ResamplingMode and Resolution

inputPoints
pointIndices
viewportWidth
RequiresReduction
public bool RequiresReduction(IndexRange pointIndices, int viewportWidth)
result = iPointResampler_Old.RequiresReduction(pointIndices, viewportWidth)

Returns true if a dataset with the specified index range requires point reduction on the given viewport size

pointIndices
viewportWidth
WithMode
public IPointResampler_Old WithMode(ResamplingMode newMode)
result = iPointResampler_Old.WithMode(newMode)

Sets a new ResamplingMode on the IPointsResampler

newMode