/** * Sets the visibility of function value zero in this view. * The default visibility is ALWAYS. * @param zero the visibility of function value zero. */ public void setZero(Zero zero) { if (_zero!=zero) { _zero = zero; updateBestProjectors(); repaint(); } }
/** * Sets specified sampling and function values. * @param sx the sampling of the variable x. * @param f array of sampled function values f(x). */ public void set(Sampling sx, float[] f) { Check.argument(sx.getCount()==f.length,"sx count equals length of f"); _sx = sx; _f = copy(f); updateBestProjectors(); repaint(); }