public Compute ( double x, double y ) : void | ||
x | double | Array of X values. |
y | double | Array of corresponding Y values. |
return | void |
public void Compute(double[] x, double[] y)
{
if (x == null)
throw new ArgumentNullException("x");
if (y == null)
throw new ArgumentNullException("y");
if (x.Length != y.Length)
throw new DimensionMismatchException("y", "The x and y arrays should have the same length");
initialize(x, y, null);
}
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); }