Re: [Statistics] Convention when outside support?

2019-11-29 Thread Fran Lattanzio
Hi, I was involved in a similar debate on a different project, and we came to the conclusion that (double -> double) methods in Java should return NaN in the case of invalid arguments, rather than throw Exceptions. Our reasoning was by analogy with how IEEE 754 floating-point exceptions are

[math] New finite differencing framework

2016-02-17 Thread Fran Lattanzio
Hello all, (I tried to send this yesterday, but it looks like my message bounced, as I received some weird errors; apologies if you are receiving a duplicate of this message.) I have created a pull request with a new univariate finite difference framework for [math]. The main features of this

[math] New finite differencing framework for math4

2016-02-16 Thread Fran Lattanzio
Hello all, I have created a pull request with a new univariate finite difference framework for [math]. The main features of this framework are: 1. *Exact* calculation of the coefficients for any stencil type (forward, backward, central), derivative order, and accuracy order. This is done by

Re: [math] Question regarding use of CM - who is using it?

2013-02-01 Thread Fran Lattanzio
Hi, We use CM in an options analytics package. Some of the interesting usages are: 1. Implied vol calculations (a semi-fancy root find over function with no closed forms). 2. Dividend projections. 3. Option greeks (partial derivatives of value function), both automatic and numerical. 4.

Re: [math] Numerical derivatives in Commons Math

2011-08-12 Thread Fran Lattanzio
); gradientAtXpls = derivativeAt(x_copy); x[j] = xtemp; for(int i=0;in;i++){ hessian[i][j] = (gradientAtXpls[i]-gradientAtX[i])/stepSize; } } return hessian; } On 8/11/2011 5:36 PM, Luc Maisonobe wrote: Le 11/08/2011 23:27, Fran Lattanzio a écrit : Hello, Hi Fran, I have a proposal

[math] Numerical derivatives in Commons Math

2011-08-11 Thread Fran Lattanzio
Hello, I have a proposal for a numerical derivatives framework for Commons Math. I'd like to add the ability to take any UnivariateRealFunction and produce another function that represents it's derivative for an arbitrary order. Basically, I'm saying add a factory-like interface that looks