Accord.Statistics.Visualizations.Scatterplot.Compute C# (CSharp) Method

Compute() public method

Computes the scatter plot.
public Compute ( double values ) : void
values double Array of values.
return void
        public void Compute(double[] values)
        {
            if (values == null)
                throw new ArgumentNullException("values");

            double[] idx = Vector.Interval(0.0, values.Length - 1, 1.0);

            initialize(idx, values, null);
        }

Same methods

Scatterplot::Compute ( double x, double y ) : void
Scatterplot::Compute ( double x, double y, int labels ) : void
Scatterplot::Compute ( double data, int labels ) : void

Usage Example

        public void ComputeTest2()
        {
            ScatterplotView target = new ScatterplotView();

            Scatterplot histogram = new Scatterplot();
            histogram.Compute(new double[] { 200.0, 200.0, 200.0 });

            target.DataSource = null;

            target.DataSource = histogram;

            target.DataSource = null;

            // ScatterplotBox.Show(histogram);
        }
All Usage Examples Of Accord.Statistics.Visualizations.Scatterplot::Compute