Re: [math] Multivariate solver - constrained optimization

2016-01-07 Thread Luc Maisonobe
Le 07/01/2016 16:16, Carlos M. Casas Cuadrado a écrit : > Hi all, Hi Carlos, > there is an interface for univariate solvers and several implementations of > it. Is it planned to add an interface for multivariate solvers (for zeroes > of functions R^n -> R^n i.e. a set of n multivariate functions)

[ANNOUNCE] Apache Commons Math 3.6 released

2016-01-06 Thread Luc Maisonobe
submit bug reports, patches, or suggestions for improvement, see the Apache Commons Math website: http://commons.apache.org/proper/commons-math/ Luc Maisonobe, on behalf of the Apache Commons community - To unsubscribe, e-mail

Re: [math] - Java help with DerivativeStructure through UnivariateDifferentiableFunction

2015-09-11 Thread Luc Maisonobe
Le 10/09/2015 23:40, Matthew Kehoe a écrit : > Hello All, Hi Matthew, > > I ran into trouble while creating a Java program for the > NewtonRaphsonSolver algorithm. > > I made a post about this problem on Stack Overflow at > http://stackoverflow.com/questions/32511458/java-derivativestructure-in

Re: [math] BSP - so given a set of polygon's it'll generate a BSP for me?

2015-08-14 Thread Luc Maisonobe
Le 13/08/2015 23:20, Monty Hall a écrit : > Not exactly sure how it works. I need a BSP on short order. Given a set > of polygons, I'd like a BSP generated. Please advise. Any working code on > how to use it too? Hi Monty, Yes, BSP trees can be created from polygons in some cases, but I am no

Re: [math] No User Guide for new Optimization methods

2015-07-27 Thread Luc Maisonobe
Hi Nigel, Le 24/07/2015 21:14, Nigel R Murray a écrit : > For those of us who have projects dependent on the deprecated Optimization > methods (using Jacobians for differentiable functions), would someone > consider updating the User Guide to give optimization examples using the > new methods? I

Re: [math] No User Guide for new Optimization methods

2015-07-25 Thread Luc Maisonobe
Hi Nigel, Le 24/07/2015 21:14, Nigel R Murray a écrit : > For those of us who have projects dependent on the deprecated Optimization > methods (using Jacobians for differentiable functions), would someone > consider updating the User Guide to give optimization examples using the > new methods? I'

Re: [math] noob; performance metrics?

2015-06-23 Thread Luc Maisonobe
Hi Mike, Le 23/06/2015 21:17, mike shugar a écrit : > To amplify and extend the question - would also like to know the same > info where bigdecimal is involved. I really don't know. We don't reall use BigDecimal in Apache Commons Math. We rather used Dfp when we need high accuracy. Dfp does provi

Re: [math] noob; performance metrics?

2015-06-23 Thread Luc Maisonobe
Hi Andrew, Le 23/06/2015 19:08, Andrew E. Davidson a écrit : > sorry if this has been asked many times before. (maybe this can be > added to the FAQ?) > > has anyone done any bench marking? Yes. > > The idea of having a math package that is implemented pure java is > very attractive. My experi

Re: [Math] Allow empty "ConvexHull2D"

2015-06-10 Thread Luc Maisonobe
Le 10/06/2015 15:16, Gilles a écrit : > On Wed, 10 Jun 2015 14:45:41 +0200, Thomas Neidhart wrote: >> On 06/10/2015 01:44 PM, Gilles wrote: >>> On Wed, 10 Jun 2015 12:23:58 +0200, Thomas Neidhart wrote: On 06/09/2015 11:42 PM, Gilles wrote: > On Tue, 09 Jun 2015 23:19:35 +0200, Thomas Neid

Re: [math] ODE with Jacobian in commons math 3.5

2015-05-15 Thread Luc Maisonobe
Le 14/05/2015 16:40, Bernard GODARD a écrit : > Dear all, Hi Bernard, > > The user guide on ordinary differential equations > http://commons.apache.org/proper/commons-math/userguide/ode.html > is very useful to understand how to use ODEWithJacobians and > ParameterizedODE. > but not up to date.

[ANNOUNCE] Apache Commons Math 3.5 released

2015-04-18 Thread Luc Maisonobe
website: http://commons.apache.org/proper/commons-math/ Luc Maisonobe, on behalf of the Apache Commons community - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h

Re: [math] find an approximate curve for 3d points

2015-01-28 Thread Luc Maisonobe
Le 28/01/2015 11:41, andrea antonello a écrit : > Hello everyone, Hi Andrea, > I was wondering if there is a way to create an approximated curve in > 3d given a set of xyz coordinates. Yes, there is a way. > To make myself more clear with an example, lets assume I have the > center point of a t

[ANNOUNCEMENT] Apache Commons Math 3.4 Released

2014-12-28 Thread Luc Maisonobe
Commons Math, including instructions on how to submit bug reports, patches, or suggestions for improvement, see the Apache Commons Math website: http://commons.apache.org/proper/commons-math/ Luc Maisonobe, on behalf of the Apache Commons community

Re: [math] DerivativeStructure constants

2014-10-03 Thread Luc Maisonobe
Hi Luke, Le 03/10/2014 13:40, Luke Lindsay a écrit : > Hello, > > I am using the apache math DerivativeStructure framework. In general > I find it very useful, however sometimes I find having to specify the > number of free parameters and order for what are essentially constants > makes code com

Re: [math] Curve fitting ...

2014-08-14 Thread Luc Maisonobe
Hi South Light, Le 14/08/2014 19:05, South Light a écrit : > Hi Thomas, > > My problem is to find the best A value in y = 10 ^ ((x + 82) / (-10 * A)) > that fits better in a set of data. I'll be getting different sets of data. > > I'm new in the use of the math lib and the examples found are all

Re: [math] FiniteDifferencesDifferentiator is not convenient for simple differentiation task

2014-08-06 Thread Luc Maisonobe
Hi Alexander Le 06/08/2014 15:53, Alexander Nozik a écrit : > A DerivativeStructure and UnivariateDifferentiableFunction are great > tools if one needs to investigate the whole function but are not > convenient if one just needs derivative in a given point. > In order to calculate a derivative of

Re: Parsing and solving algebraic equation from string

2014-07-20 Thread Luc Maisonobe
Hi Mansour, Le 15/07/2014 15:02, Mansour Al Akeel a écrit : > I am new to commons-math. I need to solve simple equations in the form > "x + 3 = 10" > The closest thing I was able to find is > http://commons.apache.org/proper/commons-math/userguide/linear.html#a3.4_Solving_linear_systems If you ha

[ANN] Apache Commons Math 3.3 Released

2014-05-16 Thread Luc Maisonobe
release. For complete information on Apache Commons Math, including instructions on how to submit bug reports, patches, or suggestions for improvement, see the Apache Commons Math website: http://commons.apache.org/proper/commons-math Luc Maisonobe, on behalf of the Apache Commons Team

Re: [math] Problem with ODE discrete event

2014-03-24 Thread Luc Maisonobe
Hi Calle, Le 24/03/2014 17:28, Calle Ekdahl a écrit : > When using the event handler in the ODE solver I’m getting the error > message/exception > > "Exception in thread "main" > org.apache.commons.math3.exception.NoBracketingException: function values at > endpoints do not have different sign

[math ]Re: Big Decimal support in Apache Math

2013-12-21 Thread Luc Maisonobe
Hi Avi, [first of all, please add a [math] marker in the subject line when posting questions here about this component. The list is shared among all Apache Commons Components, and this marker help subscribers to filter messages appropriately, thanks]. Le 20/12/2013 12:31, ABINASH MISRA a écrit :

Re: [math] solving bivariate quadratic equations

2013-12-06 Thread Luc Maisonobe
he same weight. Then, as the meaning of the weight is only relative, if they all have the same weight you may well use simply 1.0 as the global weight for everyone. best regards, Luc > > Thanks, > Andrea > > > > > On Fri, Dec 6, 2013 at 10:58 AM, Luc Maisonobe wro

Re: [math] solving bivariate quadratic equations

2013-12-06 Thread Luc Maisonobe
Hi Andrea, Le 06/12/2013 10:02, andrea antonello a écrit : > Hi Ted, > thanks for the reply. > >> How would you like to handle the fact that you may have an infinite number >> of solutions? Will you be happy with any of them? Or do you somehow want >> to find all of them? > > I am afraid my ma

Re: [Math] Use of Precision class for inequalities

2013-10-30 Thread Luc Maisonobe
Le 30/10/2013 11:45, BIGNON Emmanuel a écrit : > Hello, Hi Emmanuel, > > Commons Math has a class "Precision" that defines equalities and inequalities > using epsilon values. > I noticed that Commons Math uses the Precison.equals method when necessary > (for equalities), but never the Precisio

Re: [math] Re: matrix is singular when doing LU Decomposition

2013-10-11 Thread Luc Maisonobe
Le 11/10/2013 09:48, Luc Maisonobe a écrit : > Hi Li Li, > > First of all, please note that this mailing list is shared among many > Apache Commons components, so the name of the component (here [math]) > must be included in the subject line as I did when answering your > ques

[math] Re: matrix is singular when doing LU Decomposition

2013-10-11 Thread Luc Maisonobe
Hi Li Li, First of all, please note that this mailing list is shared among many Apache Commons components, so the name of the component (here [math]) must be included in the subject line as I did when answering your question), so it helps the numerous subscriber to filter. Le 11/10/2013 08:31, Li

Re: [math] Union Produces In-Line Vertex

2013-08-03 Thread Luc Maisonobe
Hi Curtis, Le 29/07/2013 23:37, Curtis Jensen a écrit : > The 2D Euclidean union function sometimes produces an extra, in-line, vertex. > > For example, in the "testUnion" function in the > org.apache.commons.math3.geometry.euclidean.twod.PolygonsSetTest, the > "set" produced by the union of "set

Re: [math] Rotation around given direction

2013-07-08 Thread Luc Maisonobe
Hi Alexander, Le 08/07/2013 14:44, Alexander Nozik a écrit : > In order to solve some Monte-Carlo problem I need to implement the > following procedure: during interaction I know the difference between > the initial and the final angle "dTheta" (the direction is random) and > the initial polar an

Re: [math] Total derivative of a MultivariateVectorFunction

2013-05-25 Thread Luc Maisonobe
Le 25/05/2013 21:27, Luc Maisonobe a écrit : > Hi Christoph, > > Le 23/05/2013 10:39, Christoph Höger a écrit : >> Am 22.05.2013 22:50, schrieb Luc Maisonobe: >> >>> I am not sure I understood your use case properly. I'll look at it further >>> in t

Re: [math] Total derivative of a MultivariateVectorFunction

2013-05-25 Thread Luc Maisonobe
Hi Christoph, Le 23/05/2013 10:39, Christoph Höger a écrit : > Am 22.05.2013 22:50, schrieb Luc Maisonobe: > >> I am not sure I understood your use case properly. I'll look at it further >> in the next few days. >> >> A first very quick answer is that the

Re: [math] Help needed for usage of Newton-Raphson solver

2013-05-23 Thread Luc Maisonobe
(1).multiply(t.subtract(0.5)).multiply(t).multiply(t.add(0.5)).multiply(t.add(1)); >> } >> >> } >> >> The DerivativeStructure provides the standard arithmetic operations which >> you can use. >> So in your case the value method would look like this imho: >

Re: [math] Total derivative of a MultivariateVectorFunction

2013-05-22 Thread Luc Maisonobe
"Christoph Höger" a écrit : >Dear all, Hi Christoph, > >I am currently working with the DerivativeStructure-based AD framework >integrated into math 3.2. > >Calculating the n-th order partial derivatives works fine, but I am >facing some trouble calculating the n-th order total derivative of

[math] Re: LevenbergMarquardtOptimizer

2013-04-17 Thread Luc Maisonobe
Le 17/04/2013 10:08, Eric HENON a écrit : > Hello, > > I'm trying to do a non linear > regression using the LevenbergMarquardtOptimizer. > > I have copied the proposed Demo code at: > http://commons.apache.org/proper/commons-math/userguide/optimization.html > > and I get the following error at t

[math] Re: non linear regression

2013-04-17 Thread Luc Maisonobe
Le 17/04/2013 08:12, eric henon a écrit : > Sorry, > > I made a mistake, > I'm not used with Jacobian, > the jacobian[i][2]= -1/x ... (without c parameter ...) > and it should be ok > using the common apache MultivariateMatrixFunction jacobian ... Yes, what is needed correspond to partial deri

[ANNOUNCE] Apache Commons Math version 3.2 released

2013-04-07 Thread Luc Maisonobe
Hello. The Apache Commons team is pleased to announce the release of version 3.2 of Apache Commons Math, a self-contained Java library of tools such as root finders, ordinary differential equations solvers, optimizers, statistics, matrix algebra, and more. Apache Commons Math can be downloaded fr

Re: [math] Propagation of uncertainty

2013-01-16 Thread Luc Maisonobe
Le 16/01/2013 16:14, Adrien ANDRÉ a écrit : > Hi all, Hi Adrien, > > does someone know how i could integrate propagation of uncertainty > (https://en.wikipedia.org/wiki/Error_propagation) using something better > organized than Michael Thomas Flanagan's ErrorProp Class > (http://www.ee.ucl.ac.uk

Re: [math]

2012-10-12 Thread Luc Maisonobe
Hi Curtis, Le 12/10/2012 17:49, Curtis Jensen a écrit : > Should I create a bug report in Jira? Yes please. This will allow us to not forget this report and check what's going on. thanks, Luc > > -- > Curtis > > On Thu, Oct 11, 2012 at 2:32 PM, cac...@gmail.com wrote: >> Those sound like pro

Re: [math] How to use the BSP Tree?

2012-08-26 Thread Luc Maisonobe
complement ...). best regards, Luc > > Best regards, > > Martin > > Original-Nachricht >> Datum: Sat, 25 Aug 2012 14:03:33 +0200 >> Von: Luc Maisonobe >> An: Commons Users List >> Betreff: Re: [math] How to use the BSP Tree? >

Re: [math] How to use the BSP Tree?

2012-08-25 Thread Luc Maisonobe
Le 25/08/2012 12:17, Martin Ennemoser a écrit : > Hi! Hi Martin, > > I have a polyhedron in 3D space that consists of a triangle mesh. Now I want > to use the BSP tree to classify wheter a point is inside or outside of the > polyhedron. > The problem is that I don't know how to construct a BSP

Re: [Math] download links broken

2012-08-25 Thread Luc Maisonobe
Le 25/08/2012 01:50, Richard Pito a écrit : > All the download links for Math Commons are broken. I've tried several > mirrors with no luck. Any ideas? I did not experience this. Could you retry? At least, this ones worked for me:

Re: [math] Optimize non-differentiable multivariate real function with initial guess

2012-08-06 Thread Luc Maisonobe
Le 06/08/2012 18:46, Adrien Andre a écrit : > Hi all, Hi Adrien, > > i'm implementing in java a model which was originally developped in Matlab. > > The goal is to minimize a non-differentiable trivariate real function. > The Matlab code calls the fminunc function > x = fminunc(fun,x0,options)

[math] Re: Math Polynomial from specified roots

2012-08-03 Thread Luc Maisonobe
Le 03/08/2012 09:38, Gabriele Bulfon a écrit : > Hi, Hello, Please note that I have changed the subject of your message to add the [math] marker. This list is shared among several components and we ask users to set such a marker to help filtering. > while converting a Matlab source, I encountere

Re: [Math] polynomial equation degre < 5

2012-05-23 Thread Luc Maisonobe
Le 23/05/2012 19:21, Jean-François MAUREL a écrit : > Hi, > > Le 23/05/2012 16:56, Gilles Sadowski a écrit : >> A patch is welcome to speed things up (the proposed fix was discussed >> on the >> ML, see the archive). > > Trying to check out with svn from eclipse Helios (Windows vista) I get: > >

Re: [math] Usage of DifferentiableMultivariateRealFunction

2012-05-14 Thread Luc Maisonobe
Le 14/05/2012 14:11, Andreas Niekler a écrit : > Hello, Hi Andreas, > > after reading a lot through the tutorial this is the code that i came up > with regarding the implementation of a gaussian process regression > optimisation (File appended): > > initCovarianceAndGradients(): initialisation

Re: [math] UnivariateRealSolver in math3

2012-04-20 Thread Luc Maisonobe
Le 19/04/2012 18:43, Bernard GODARD a écrit : >> Well, let's say you have a framework which requires solving >> an equation deep down, and you want to pass a solver from the >> outside. I admit this is exotic, and in all of the examples I've >> seen the usage of a solver in such a framework was ult

Re: [math] Getting second derivative for discrete dataset

2012-03-31 Thread Luc Maisonobe
it fits your function to an higher degree. Beware that you should *not* increase the number of points too much, otherwise you would get Gibbs oscillation problems (i.e a polynomial that has very large changes between the sampling points). Hope this helps Luc > > -sujit > > On Mar 30, 2

Re: [math] Getting second derivative for discrete dataset

2012-03-30 Thread Luc Maisonobe
SUJIT PAL a écrit : >Hi, > >I have a (newbie) question about how to go about solving the problem >below with commons-math. > >1) I have histogram data (equal x intervals) based off some >distribution. >2) I need a way to calculate the second differential between two given >x points in the dist

Re: [math] is 3.0 available via a public repository?

2012-03-27 Thread Luc Maisonobe
Le 27/03/2012 00:11, billy bob a écrit : > The most recent version currently on maven central is 2.2. Any idea when 3.0 > will be available? Note that since this was a major release, and as per recent Commons policy, the artifact ID has changed from commons-math to commons-math3. Luc > > > -

Re: [commons math] - complex matrix inversion

2012-03-16 Thread Luc Maisonobe
Le 16/03/2012 18:39, Ted Dunning a écrit : > If you really must do this, use a solver and feed it the identity matrix. > That is, given the matrix A, solve the matrix system AX = I > > Any solver that handles complex matrix right hand sides will do this for > you. Iterative calls to a solver wit

Re: [configuration] How to get threadsafe subset() config in a threadsafe way?

2012-03-13 Thread Luc Maisonobe
Le 13/03/2012 07:34, Tim Bessie a écrit : > Hi all... Hi Tim, > > So we're keeping some config information CompositeConfiguration object, and > we need to get subsets of this configuration data. > > When I call .subset(...), and then do some checks on the subset (isEmpty(), > etc.), I sometimes

Re: [math] Newton Solver

2012-02-13 Thread Luc Maisonobe
Le 13/02/2012 13:48, Gilles Sadowski a écrit : > On Mon, Feb 13, 2012 at 01:59:54PM +0300, binodc wrote: >> Newton Solver >> http://commons.apache.org/math/apidocs/org/apache/commons/math/analysis/solvers/NewtonSolver.html > > This is a root finder algorithm for which you have to provide an explic

[nabla] Re: Commons Nable question - saving derivative class

2012-01-03 Thread Luc Maisonobe
Le 03/01/2012 01:45, M Singh a écrit : > Hi: Hi, [please note I have added a marker in the subject line. This list is shared among several projects and such markers are mandatory to help people filtering messages] > > I wanted to save the derivative class to a file, but when I save it and try

Re: [math] Complex Tanh for "big" numbers

2011-12-09 Thread Luc Maisonobe
Le 09/12/2011 08:51, Juan Barandiaran a écrit : > Hi, Hi Juan, > > In Complex.java the tanh is computed with the following formula: > > tanh(a + bi) = sinh(2a)/(cosh(2a)+cos(2b)) + [sin(2b)/(cosh(2a)+cos(2b))]i > > The problem that I'm finding is that as soon as "a" is a "big" number, > both s

Re: [math] EigenDecompositionImpl -- maxIters causing troubles?

2011-11-29 Thread Luc Maisonobe
Le 28/11/2011 22:41, Maciej Rubikowski a écrit : > Hello, Hi Maciej, > > before I fill in the bug report, I want to ask if anyone had similar > issue before. Maybe I simply misunderstood the whole idea behind > EigenDecomposition, but I think what I've come up with is in fact a > serious limitat

Re: [Math] New major release in sight?

2011-11-24 Thread Luc Maisonobe
Le 24/11/2011 15:56, Gilles Sadowski a écrit : > Hello. > > The large project in which I'm involved requires that all developers use the > same version of a library, and preferrably an official release. > My code makes use of the development version of Commons Math[1] and I've > been working aroun

Re: [math] Optimization: Nelder-Mead and Levenberg-Marquardt

2011-11-23 Thread Luc Maisonobe
Le 23/11/2011 12:22, Mikkel Meyer Andersen a écrit : > 2011/11/23 annaykay : >> Hello everyone, Hi Annakay, >> I am working on the optimization of some model parameters in my simulation, >> which simulates the impact of communication on the attitude towards a >> specific topic. >> I want to optim

Re: [math] looking for a broad reference paper

2011-10-26 Thread Luc Maisonobe
Le 26/10/2011 16:40, Phil Steitz a écrit : > On 10/26/11 7:20 AM, Luc Maisonobe wrote: >> Hello, >> >> One of the researcher I am working with (and who will soon start using >> Apache Commons Math and Orekit) is looking for "a short article (no more >> than

[math] looking for a broad reference paper

2011-10-26 Thread Luc Maisonobe
Hello, One of the researcher I am working with (and who will soon start using Apache Commons Math and Orekit) is looking for "a short article (no more than 10 pages) that discusses the evolution of scientific data communication technology and rates from 1960 to present". Does one of our math-love

Re: [math] Re: binomial random generator

2011-10-23 Thread Luc Maisonobe
Le 23/10/2011 09:47, Andy Turner a écrit : > Hi, Hello All, You could also give a try to other random generators provided by Apache Commons Math. Did you try the Well generators like Well1024a for example ? These generators are tailored towards large simulation like Monte-Carlo ones. Luc > > A

Re: [math] Polygon Difference Question

2011-09-07 Thread Luc Maisonobe
Le 26/08/2011 20:41, Curtis Jensen a écrit : Using math 3.0, I have two polygons with many points. One is completely contained within the other. When I do a difference on the two, I expected to get a polygon with a hole in it. However, I get 86 polygons, that roughly make up a polygon with a h

Re: [math] Polygon Difference Question

2011-09-07 Thread Luc Maisonobe
Le 07/09/2011 00:02, Curtis Jensen a écrit : Below is a simpler example. Here, set2 is a polygon completely encompassed by the set1 polygon. Yet the difference function produces a single polygon that doesn't seem to be a difference in any sense that I can understand. How are the verticies of a

Re: [math] Polygon Difference Question

2011-09-07 Thread Luc Maisonobe
Le 07/09/2011 00:02, Curtis Jensen a écrit : Below is a simpler example. Here, set2 is a polygon completely encompassed by the set1 polygon. Yet the difference function produces a single polygon that doesn't seem to be a difference in any sense that I can understand. How are the verticies of a

Re: [MATH] Holt Winters?

2011-08-15 Thread Luc Maisonobe
Hi Ashwin, Le 12/08/2011 05:24, Ashwin Jayaprakash a écrit : Are there any plans to add Holt-Winters to Commons Math? There is a simple implementation here - http://n-chandra.blogspot.com/2011/04/holt-winters-triple-exponential.html There is no plans for this yet. If you need it, you can open

Re: [math] Distance to Line and Line Segments

2011-08-02 Thread Luc Maisonobe
Le 02/08/2011 19:39, Curtis Jensen a écrit : That would work. I guess, the 2D Line distance questions was a request. Also, I'm more interested in the line segment part of the question. For now there is no such method. Please open a Jira issue for this request, I'll implement them (I also have

Re: [MATH] Commons Math 3.0-SNAPSHOT code?

2011-07-27 Thread Luc Maisonobe
Le 27/07/2011 20:56, Miguel Ruiz a écrit : Hello, I was looking for a while but I couldn´t find the source code that is published in the API DOCS . Could anybody send me this library version? The snapshots version are not officially published

Re: [math] Polygon intersection vertices outside original polygon

2011-07-13 Thread Luc Maisonobe
Hi Curtis, Le 05/07/2011 22:23, luc.maison...@free.fr a écrit : - "Curtis Jensen" a écrit : On Mon, Jul 4, 2011 at 2:00 PM, Curtis Jensen wrote: I'm using the RegonFactory.intersection method to get the intersection of polygons. However, I'm getting points that are outside of one of

Re: [math] Polygon intersection vertices outside original polygon

2011-07-05 Thread luc . maisonobe
- "Curtis Jensen" a écrit : > On Mon, Jul 4, 2011 at 2:00 PM, Curtis Jensen > wrote: > > > I'm using the RegonFactory.intersection method to get the > intersection of > > polygons. However, I'm getting points that are outside of one of > the > > original polygons. See example below. Am I

Re: [Math] Jacobian Matrix of f(x,y)

2011-07-04 Thread Luc Maisonobe
Hi Jeesh, Le 04/07/2011 19:47, jeesh a écrit : Thanks! I've got it to work! One more quick question - how would I take the function& parameters that the algorithm just spat out and then find the global max z value (and associated x,y coordinate) of the function? If I understand your needs,

Re: [Math] Jacobian Matrix of f(x,y)

2011-07-03 Thread Luc Maisonobe
Le 03/07/2011 14:47, jeesh a écrit : Hi everyone, Hi Jeesh, I'm somewhat new to java, but I'm looking to build a least squares optimization routine for a 2D Gaussian Fit based on this link (about half way down) http://commons.apache.org/math/userguide/optimization.html. Just a general questi

Re: [math] SimplexSolver - how to restrict solution to integer values?

2011-06-21 Thread luc . maisonobe
- "Michele Mazzucco" a écrit : Hi Michele, > Antonio, > > thanks for the quick answer. > Do you know any library/framework which could help me with that? Perhaps Choco ? best regards, Luc > > Cheers, > Michele > > > On Jun 21, 2011, at 5:46 PM

Re: [math] Cross and Dot Product (not centered at the origin)

2011-06-17 Thread Luc Maisonobe
Le 16/06/2011 21:43, Curtis Jensen a écrit : On Wed, Jun 15, 2011 at 12:01 PM, Luc Maisonobe wrote: Le 15/06/2011 19:57, Curtis Jensen a écrit : The Vector2D and Vector3D classes have dotProduct and crossProduct methods. I assume this is done be considering each vector originating There

Re: [math] Cross and Dot Product (not centered at the origin)

2011-06-15 Thread Luc Maisonobe
Le 15/06/2011 19:57, Curtis Jensen a écrit : The Vector2D and Vector3D classes have dotProduct and crossProduct methods. I assume this is done be considering each vector originating There is no crossProduct in Vector2D in the current version I think. from the origin. How can the dot product

Re: [math] Point Translation

2011-06-15 Thread Luc Maisonobe
Hi Curtis, Le 15/06/2011 17:59, Curtis Jensen a écrit : In the commons math 3.0 Geometry package, How can I translate I Vector2D by a distance and angle? I would like to move a 2D point by a specified distance and angle, but I'm not seeing how. You can use the static method getTransform to con

Re: [Math] download development snapshot

2011-06-15 Thread Luc Maisonobe
Le 15/06/2011 09:12, Dennis Hendriks a écrit : Hi all, Hi Dennis, Since I'd like to use trunk (version 3.0, in development) of Apache Commons Math, I was wondering if there is a way to download an already built version of it. I found the build server at http://vmbuild.apache.org/continuum/bu

Re: SubLine Intersection Math 3.0

2011-06-14 Thread Luc Maisonobe
Hi Curtis, Le 14/06/2011 19:38, Curtis Jensen a écrit : In the commons math 3.0 Geometry package, How can get the intersection of two SubLines? I see that the Line class has an intersection method, but not the SubLine class. I can create Lines from SubLines and call the intersection method, bu

Re: [Math] How to force integration past the state event?

2011-06-10 Thread Luc Maisonobe
ng an existing top level public interface to add the set method, so it can be done only when a major release is published. So it is right the perfect time to do it! best regards, Luc Best regards, Dennis Luc Maisonobe wrote: Le 10/06/2011 10:20, Dennis Hendriks a écrit : Hi Luc, Hi D

Re: [Math] How to force integration past the state event?

2011-06-10 Thread Luc Maisonobe
Le 10/06/2011 10:20, Dennis Hendriks a écrit : Hi Luc, Hi Dennis, Thanks for your quick reply. It would be a possible solution. I decided to familiarize myself with the internals of the code that is used, in order to better understand what code is responsible for the root finding. I found t

Re: [Math] How to force integration past the state event?

2011-06-09 Thread luc . maisonobe
- "Dennis Hendriks" a écrit : > Hi all, Hi Dennis, > > I have the following (simplified) ODE problem: > >V(0) = 10.00645817822 >V' = -sqrt(V) > > and the following state event: > >V <= 2.0 > > Using: > >t = 6.6845103160078425 >GraggBulirschStoerIntegrator(1e-1

Re: [math] Eigenvalue decomposition like octave

2011-05-17 Thread Luc Maisonobe
Le 17/05/2011 20:40, Arne Plöse a écrit : Is there a Eigenvalue decomposition like octave "eig(m)" that takes also matices that are not symmetric? Or any mathematical tip how to do this? No, we do not have an implementation for non-symmetric matrices. There is an open issue for that

Re: [math] Jama Matrix to Math Commons (Least squares and Recursive least squares)

2011-04-27 Thread Luc Maisonobe
Le 27/04/2011 17:23, Luc Maisonobe a écrit : > Le 27/04/2011 15:52, Cedric Martin a écrit : >> Hi all, > > Hi Cédric, > >> >> I have a simplistic implementation of least squares using Jama Matrix which >> I would like to migrate to Math Commons if possible.

Re: [math] Jama Matrix to Math Commons (Least squares and Recursive least squares)

2011-04-27 Thread Luc Maisonobe
Le 27/04/2011 15:52, Cedric Martin a écrit : > Hi all, Hi Cédric, > > I have a simplistic implementation of least squares using Jama Matrix which > I would like to migrate to Math Commons if possible. I'm running into > issues where the LUDecomposition requires a square matrix, and what I want

Re: [Math] MultivariateRealOptimizer: how to use commons math to solve linear programming problems

2011-04-15 Thread Luc Maisonobe
Le 15/04/2011 11:12, Piotr Kolanowski a écrit : > Hi all, > > I'm looking for examples for MultivariateRealOptimizer. I've been > reading the available > documentation but unfortunately I still have no clue how to use it. > > I would like to maximize following example objective function: > > 5x1

[math] Re: running average of a rate

2011-03-14 Thread Luc Maisonobe
Le 14/03/2011 15:33, Benson Margulies a écrit : > Please excuse the following ignorant question. > > I want to maintain summary statistics of a rate. At each 'event', I > know the number of characters and the time it took to process them, > and I want to maintain summary statistics for the rate of

[ANNOUNCE] Apache Commons Math 2.2 released

2011-03-02 Thread Luc Maisonobe
ot; links here: http://commons.apache.org/math/project-info.html Luc Maisonobe - On behalf of the Apache Commons community - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org

Re: [exec]

2011-02-26 Thread Luc Maisonobe
Le 26/02/2011 10:34, Martinov, Nickolay a écrit : > Hello Luc, Hi Nickolay, > > Yes, I already have an account (posted issues previously) and tried "Can't > access your account". But it only tells following > > A reset password link has been sent to you via email. > You can follow that link an

Re: [exec]

2011-02-26 Thread Luc Maisonobe
Le 26/02/2011 06:59, Martinov, Nickolay a écrit : > Hello, > > According to doc found on ASF infrastructure page ("Users should report > issues and ask questions to the appropriate project first though the > appropriate mailing list.") I ask for help here. > I cannot login into Apache JIRA. It t

Re: [Math] LevenbergMarquardtOptimizerTest Question

2011-02-04 Thread Luc Maisonobe
Le 04/02/2011 03:13, Ole Ersoy a écrit : > Hi, Hi Ole, > > I have a few questions regarding the implementation of the quadratic > problem in the > org.apache.commons.math.optimization.general.LevenbergMarquardtOptimizerTest. > > > I assume the quadratic is defined as: > f(x) = a*x^2 + b*x + c

Re: [Math] Levenberg Marquardt Help

2011-01-31 Thread luc . maisonobe
- "Ole Ersoy" a écrit : > Hi, Hi Ole, > > I'm trying to fit a normal distribution to a curve (I'm assuming the > LM Optimizer is a good tool for this). Is there a generic approach > that lets me construct a Jacobian or do I need specialized knowledge > of the function in order to do this

Re: [Math] BigDecimal to power

2011-01-27 Thread Luc Maisonobe
Le 27/01/2011 19:33, Andy Turner a écrit : >>> I don't see a dflp package in 2.1. Can you give me a better pointer? I >>> want to compare... >> >> It is in the subversion repository. You'll have to check it out. > > I did, but have not found it! Sorry, I wrote dflp but it is dfp. It is a top leve

Re: [Math] BigDecimal to power

2011-01-25 Thread luc . maisonobe
- "Andy Turner" a écrit : > Hi and thanks Luc, > > > It may interesting to add this feature. I didn't look precisely but > how > > does it compare to our arbitrary precision dflp package ? > > I don't see a dflp package in 2.1. Can you give me a better pointer? I > want to compare... It i

Re: [Math] BigDecimal to power

2011-01-21 Thread Luc Maisonobe
Hi Andy, Le 21/01/2011 18:22, Andy Turner a écrit : > I can spend some time to change the code. I'll wait to here from > others if the functionality is wanted as part of Commons Math before > I do too much... It may interesting to add this feature. I didn't look precisely but how does it compare

Re: [math] - Least squares appx. of quadratic equations

2010-12-31 Thread Luc Maisonobe
Le 31/12/2010 19:17, Vladimir Blagojevic a écrit : > Mikkel, > > I looked at the example but I was not able to load my sample data and > find coefficients of a quadratic equation. Lets say that I have data > points for quadratic equation: > double data[][] = { { 0, 1 }, { 1, 6 }, { 2, 17 } }; whic

Re: LICENSE - Embedding math-commons in our webpage

2010-12-13 Thread Luc Maisonobe
Le 13/12/2010 18:33, Uri David Akavia a écrit : > Hi. > > I am the first author on a recently published project which uses your > math commons library, which we are very grateful for in our lab. > The project has been released at this website > http://www.c2b2.columbia.edu/danapeerlab/html/conexic

Re: [math] EuclideanIntegerPoint EuclideanDoublePoint

2010-10-20 Thread Luc Maisonobe
Le 20/10/2010 10:04, VanIngen, Erik (FIPS) a écrit : > Good morning! > > I need to to cluster analysis on values like this: > 1.814263985 -0.633923297 > 2.501153739 -0.559033358 > 2.408755862 -0.509902975 > 1.935495243 -0.330554484 > 0.728818279 -0.169024633 > -0.5238610320

Re: [math] Re: complex matrix operation

2010-10-16 Thread Luc Maisonobe
nd > perform basic operations on them? Yes, there are sparse vectors and matrices. Luc > > Thanks, > Cuong > > -Original Message- > From: Luc Maisonobe [mailto:luc.maison...@free.fr] > Sent: Saturday, October 16, 2010 2:00 PM > To: Commons Users List > Subject:

Re: [math] Re: complex matrix operation

2010-10-16 Thread Luc Maisonobe
gt; > Cuong > > -Original Message- > From: Luc Maisonobe [mailto:luc.maison...@free.fr] > Sent: Saturday, October 16, 2010 1:25 PM > To: Commons Users List > Subject: [math] Re: complex matrix operation > > Le 16/10/2010 18:53, Cuong P. Nguyen a écrit : >>

[math] Re: complex matrix operation

2010-10-16 Thread Luc Maisonobe
Le 16/10/2010 18:53, Cuong P. Nguyen a écrit : > Hi, Hi Cuong, First, please use a [math] marker on the subject line when posting to this list for the commons-math component. The list is shared among several commons components and these markers help filtering. > can I use the package for basic c

Re: [math] ComplexFormat parse for inverted complex number

2010-10-11 Thread Luc Maisonobe
Le 11/10/2010 22:38, Grzegorz Szpetkowski a écrit : > I have a question how can I (easily) parse String like that: > > String sZ = "20i + 5.4"; > > On page http://commons.apache.org/math/userguide/complex.html I found example: > > ComplexFormat cf = new ComplexFormat(); > Complex c = cf.parse("1

Re: [math] stability of latest svn code

2010-09-29 Thread Luc Maisonobe
Le 29/09/2010 18:34, Bernard GODARD a écrit : > Hi all, Hi Bernard, > > With a group of a few people, I am taking part in the General > Trajectory Optimisation Competition ( > http://www.esa.int/gsp/ACT/mad/op/GTOC/index.htm ) which starts next > week and lasts one month. Good luck with GTOC. D

Re: [math]How to do standardizing (normalizing)

2010-09-29 Thread Luc Maisonobe
Le 29/09/2010 12:13, VanIngen, Erik (FIPS) a écrit : > Hi Apache Commons Math users > > I am looking for an easy way of standardizing my values a mean 0 and a > standard deviation of 1. What is the best way to do that? > > I have tried this: > DescriptiveStatistics stats = new DescriptiveStatist

Re: [math] autocorr

2010-09-27 Thread luc . maisonobe
- "Ted Dunning" a écrit : > Everything in Colt was untested and as a result there were bugs and > inconsistencies. > > As part of the Mahout project, we have redefined the matrix primitives > to be > more amenable to our needs and simpler to extend than the original > Colt > arrays. We hav

  1   2   3   >