RE: [math] Side effect of LevenbergMarquardtOptimizer

2014-09-08 Thread Olexiy Movchan
Ward [mailto:evan.w...@nrl.navy.mil] Sent: Thursday, September 04, 2014 7:52 PM To: dev@commons.apache.org Subject: Re: [math] Side effect of LevenbergMarquardtOptimizer Hi Olexiy, In my field we often encounter a similar problem when estimating attitude since a quaternion is only a valid rotation

RE: [math] Side effect of LevenbergMarquardtOptimizer

2014-09-08 Thread Olexiy Movchan
AM To: dev@commons.apache.org Subject: Re: [math] Side effect of LevenbergMarquardtOptimizer On Thu, 4 Sep 2014 12:52:24 -0400, Evan Ward wrote: Hi Olexiy, In my field we often encounter a similar problem when estimating attitude since a quaternion is only a valid rotation when

RE: [math] Side effect of LevenbergMarquardtOptimizer

2014-09-08 Thread Gilles
Message- From: Gilles [mailto:gil...@harfang.homelinux.org] Sent: Monday, September 08, 2014 3:11 AM To: dev@commons.apache.org Subject: Re: [math] Side effect of LevenbergMarquardtOptimizer On Thu, 4 Sep 2014 12:52:24 -0400, Evan Ward wrote: Hi Olexiy, In my field we often encounter a similar

Re: [math] Side effect of LevenbergMarquardtOptimizer

2014-09-08 Thread Evan Ward
: Thursday, September 04, 2014 7:52 PM To: dev@commons.apache.org Subject: Re: [math] Side effect of LevenbergMarquardtOptimizer Hi Olexiy, In my field we often encounter a similar problem when estimating attitude since a quaternion is only a valid rotation when it is normalized. We often escape

Re: [math] Side effect of LevenbergMarquardtOptimizer

2014-09-08 Thread Evan Ward
Gilles, I like this approach. My only thought is that a separate interface for the validate method would be nicer for our Java 8 users. Then the implementation could be a lambda: (p) - p.unitVector() Best Regards, Evan On 09/07/2014 08:11 PM, Gilles wrote: On Thu, 4 Sep 2014 12:52:24 -0400,

Re: [math] Side effect of LevenbergMarquardtOptimizer

2014-09-08 Thread Gilles
Hello. On Mon, 8 Sep 2014 08:56:36 -0400, Evan Ward wrote: Gilles, I like this approach. My only thought is that a separate interface for the validate method would be nicer for our Java 8 users. Then the implementation could be a lambda: (p) - p.unitVector() Do you mean define an

Re: [math] Side effect of LevenbergMarquardtOptimizer

2014-09-08 Thread Evan Ward
I was suggesting (though not clearly :) keeping the MultivariateJacobianFunction interface as is and adding a new interface for any post processing of the evaluated point. Something like: interface StepFinalizer { RealVector apply(RealVector point); } Then we would add another getter/setter

Re: [math] Side effect of LevenbergMarquardtOptimizer

2014-09-08 Thread Gilles
On Mon, 8 Sep 2014 11:50:43 -0400, Evan Ward wrote: I was suggesting (though not clearly :) keeping the MultivariateJacobianFunction interface as is and adding a new interface for any post processing of the evaluated point. Isn't it rather pre-processing (the point is changed before

Re: [math] Side effect of LevenbergMarquardtOptimizer

2014-09-08 Thread Evan Ward
On 09/08/2014 12:06 PM, Gilles wrote: On Mon, 8 Sep 2014 11:50:43 -0400, Evan Ward wrote: I was suggesting (though not clearly :) keeping the MultivariateJacobianFunction interface as is and adding a new interface for any post processing of the evaluated point. Isn't it rather

Re: [math] Side effect of LevenbergMarquardtOptimizer

2014-09-07 Thread Gilles
On Thu, 4 Sep 2014 12:52:24 -0400, Evan Ward wrote: Hi Olexiy, In my field we often encounter a similar problem when estimating attitude since a quaternion is only a valid rotation when it is normalized. We often escape this issue by estimating a small adjustment to an apriori guess. (For the

Re: [math] Side effect of LevenbergMarquardtOptimizer

2014-09-04 Thread Evan Ward
Hi Olexiy, In my field we often encounter a similar problem when estimating attitude since a quaternion is only a valid rotation when it is normalized. We often escape this issue by estimating a small adjustment to an apriori guess. (For the details see [1].) For this technique to work the cost