/** * Sets the current sampling and samples for a function y(x). * This method simply calls the two methods * {@link #setUniformSampling(int,double,double)} and * {@link #setUniformSamples(float[])} * with the specified parameters. * @param nxu the number of uniform samples. * @param dxu the uniform sampling interval. * @param fxu the value x corresponding to the first uniform sample yu[0]. * @param yu array[nxu] of uniform samples of y(x); * by reference, not by copy. */ public void setUniform(int nxu, double dxu, double fxu, float[] yu) { setUniformSampling(nxu,dxu,fxu); setUniformSamples(yu); }
/** * Sets the current sampling and samples for a function y(x1,x2). * This method simply calls the two methods * {@link #setUniformSampling(int,double,double,int,double,double)} and * {@link #setUniformSamples(float[][])} * with the specified parameters. * @param nx1u the number of uniform samples in 1st dimension. * @param dx1u the uniform sampling interval in 1st dimension. * @param fx1u the value x1 correponding to the first sample yu[0][0]. * @param nx2u the number of uniform samples in 2nd dimension. * @param dx2u the uniform sampling interval in 2nd dimension. * @param fx2u the value x2 correponding to the first sample yu[0][0]. * @param yu array[nx2u][nx1u] of samples of y(x1,x2); * by reference, not by copy. */ public void setUniform( int nx1u, double dx1u, double fx1u, int nx2u, double dx2u, double fx2u, float[][] yu) { setUniformSampling(nx1u,dx1u,fx1u,nx2u,dx2u,fx2u); setUniformSamples(yu); }
/** * Sets the current sampling and samples for a function y(x1,x2,x3). * This method simply calls the two methods * {@link #setUniformSampling( * int,double,double,int,double,double,int,double,double)} and * {@link #setUniformSamples(float[][][])} * with the specified parameters. * @param nx1u the number of uniform samples in 1st dimension. * @param dx1u the uniform sampling interval in 1st dimension. * @param fx1u the value x1 correponding to the first sample yu[0][0][0]. * @param nx2u the number of uniform samples in 2nd dimension. * @param dx2u the uniform sampling interval in 2nd dimension. * @param fx2u the value x2 correponding to the first sample yu[0][0][0]. * @param nx3u the number of uniform samples in 3rd dimension. * @param dx3u the uniform sampling interval in 3rd dimension. * @param fx3u the value x3 correponding to the first sample yu[0][0][0]. * @param yu array[nx3u][nx2u][nx1u] of samples of y(x1,x2,x3); * by reference, not by copy. */ public void setUniform( int nx1u, double dx1u, double fx1u, int nx2u, double dx2u, double fx2u, int nx3u, double dx3u, double fx3u, float[][][] yu) { setUniformSampling(nx1u,dx1u,fx1u,nx2u,dx2u,fx2u,nx3u,dx3u,fx3u); setUniformSamples(yu); }