/** * Constructs a contours view of the specified sampled function f(x1,x2). * Assumes zero first sample values and unit sampling intervals. * @param f array[n2][n1] of sampled function values f(x1,x2), where * n1 = f[0].length and n2 = f.length. */ public ContoursView(float[][] f) { set(f); }
/** * Constructs a contours view of the specified sampled function f(x1,x2). * @param s1 the sampling of the variable x1; must be uniform. * @param s2 the sampling of the variable x2; must be uniform. * @param f array[n2][n1] of sampled function values f(x1,x2), where * n1 and n2 denote the number of samples in s1 and s2, respectively. */ public ContoursView(Sampling s1, Sampling s2, float[][] f) { set(s1,s2,f); }
/** * Sets the sampled function f(x1,x2) for this view. * Assumes zero first sample values and unit sampling intervals. * @param f array[n2][n1] of sampled function values f(x1,x2), where * n1 = f[0].length and n2 = f.length. */ public void set(float[][] f) { set(new Sampling(f[0].length),new Sampling(f.length),f); }