public partial class corelation_test : Form { public corelation_test() { InitializeComponent(); } int[] x_prev = new int[2000000]; int[] y_prev = new int[2000000]; public corelation_test(int [] x,int [] y) { InitializeComponent(); x.CopyTo(x_prev,0); y.CopyTo(y_prev,0); } int count = 0; double[] min_x = new double[20000000]; double[] min_y = new double[20000000]; int k = 0; double [] min = new double [20000000]; do { for (double i = (x_prev[count] - 10.5); i<(x_prev[count] + 10.5); i++) { for (double j = (y_prev[count] - 10.5); j<(y_prev[count] + 10.5); j++) { min[k]=Math.Pow (((x_prev [count]+11)-(x_prev [count ]+i+21))+((y_prev [count ]+11)-(y_prev [count ]+j+21)),2); k++; } } Error is in array min[k]. While project gets build it stops at line : min[k]=Math.Pow (((x_prev [count]+11)-(x_prev [count ]+i+21))+((y_prev [count ]+11)-(y_prev [count ]+j+21)),2);
do
while
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)