samer@0: package samer.mds; samer@0: samer@0: import samer.maths.*; samer@0: import samer.tools.*; samer@0: samer@0: public class GeometricFilter extends AnonymousTask { samer@0: int N; samer@0: Matrix P; // point positions (N by E) samer@0: Vec F; // filter coefficients (N element) samer@0: FunctionOfVector fn; // map from proximity to coeff. samer@0: samer@0: public GeometricFilter(Matrix P, Vec F, FunctionOfVector fn) { samer@0: this.P=P; this.F=F; this.fn=fn; samer@0: N=F.size(); samer@0: } samer@0: public void run() { samer@0: double [][] _P=P.getArray(); samer@0: double [] _F=F.array(); samer@0: for (int i=0; i