No need to do `setBeta`, you're already changing the underlying array. However, I might suggest doing some encapsulation here: give the parameter class a method like this:

~~~
void update(double dt1, double[] dbeta)
~~~

And that updates the underlying parameters by adding the provided update values.  You could also use a `Vec` instead of `double[]`, and then you can just do `beta.add(dbeta)`.