public void SetWeights(double[] newWeights)
 {
     _function.SetWeights(newWeights);
 }