numerical analysis - Calculate derivative of an array with apache-commons-math -
good morning, have array 3000 double values, need find local minimum , maximum, i'm interested first , second derivative, what's best way achieve apache commons math? trouble i'm starting directly array, not function sin(x). thanks
with array wont able find min/max.
if array calcualted known function, differentiate numerically (just calculate @ x
, x + epsilon
, , divide epsilon
, assuming there's single parameter you're differentating respect to).
alternatively, array list of coefficients of big polynomial? if so, same approach might work.
Comments
Post a Comment