public void add(double weight,double x,double y){
  observations.add(new WeightedObservedPoint(weight,x,y));
}

public void add ( double weight , double x , double y ) { observations . add ( new WeightedObservedPoint ( weight , x , y ) ) ; }
adds a point to the sample .
