Re[2]: [math] abstact nonsense was Re: [math][functor] More Design Concerns

2003-07-03 Thread Anton Tagunov
Hello Mark! 1) MRD One idea is it have Custom Iterators. A Custom Iterator could walk MRD through the objects in a collection (or the double values in an array) These iterators would also provide other nice capability, receiving the values incrementally, on the fly (say, from an InputStream or

Re: [math] abstact nonsense was Re: [math][functor] More Design Concerns

2003-07-03 Thread Mark R. Diggory
Craig R. McClanahan wrote: According to the JSR: == begin quote == It is explicitly not required that the system ... b) Support the use of primitive types as type arguments: While allowing the use of primitive types (e.g., int, boolean) as type arguments would be nice, it should not be a goal of

Re: [math] abstact nonsense was Re: [math][functor] More Design Concerns

2003-07-03 Thread Al Chou
--- Mark R. Diggory [EMAIL PROTECTED] wrote: Anton Tagunov wrote: 3) BTW, probably does the future introduction of Generics (Java 1.5) promise any opportunities to work with primitive values and yet have no code duplication (a bit like STL)? I've not spent much time looking at

Re: [math] abstact nonsense was Re: [math][functor] More Design Concerns

2003-07-03 Thread Al Chou
--- Craig R. McClanahan [EMAIL PROTECTED] wrote: My understanding is that this is exactly what you'll get from the auto-unboxing capability. The compiler will be able to see that the right hand side returns a Double, and generate the code to unbox it into a double primitive for you. This

Re: [math] abstact nonsense was Re: [math][functor] More Design Concerns

2003-07-02 Thread Phil Steitz
Brent Worden wrote: -Original Message- From: Phil Steitz [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 11:08 PM To: Jakarta Commons Developers List Subject: [math] abstact nonsense was Re: [math][functor] More Design Concerns The changed subject line is a pun that I hope none

Re: [math] abstact nonsense was Re: [math][functor] More Design Concerns

2003-07-02 Thread Mark R. Diggory
Phil Steitz wrote: Brent Worden wrote: Unfortunately, Java has created a huge distinction between objects and primitives. They're incompatible types. Objects have to be treated in a distinctly different manner than primitive values. I prefer objects over primitives because the other commons

Re: [math][functor] More Design Concerns

2003-07-02 Thread J.Pietschmann
Brent Worden wrote: And with HotSpot, frequently executed pieces of code will actually start to increase in performance as a application runs longer, and in many occasions eclipse C or C++ performance. That's what the Java lobby wants you to believe since the introduction of the first JITC. You

Re: [math][functor] More Design Concerns

2003-07-01 Thread J.Pietschmann
Brent Worden wrote: The only issues I have are with the UnivariateRealSolverFactory class. I feel there should be a separation of the factory method and the solve methods. I don't think the solve method belong on a factory. They are more appropriately placed (do I dare say) in a SolverUtils

Re: [math][functor] More Design Concerns

2003-07-01 Thread Brent Worden
I've been playing around with the Functor library a little and I reworked the bisection routine to be functorfied. With the addition of functors, the algorithm has become totally agnostic to its input allowing it to be used in an endless number of settings. The code goes as follows:

Re: [math][functor] More Design Concerns

2003-07-01 Thread Mark R. Diggory
Brent Worden wrote: This example also helps illustrate what I would like the design of the library to proceed: 1) There are a collection of utility objects to perform standard operations on standard input. StatUtils is a good example of this. 2) Factories to create operation objects that perform

Re: [math][functor] More Design Concerns

2003-07-01 Thread Brent Worden
My point in (b.) is to discuss what amount to Facades approached in classes/interfaces like (Store)Univariate and RealMatrix, and the idea that there are decisions being made concerning how the Facades are backed by various implementation strategies, not to suggest that the Facades

Re: [math][functor] More Design Concerns

2003-07-01 Thread brent
On Tue, 01 Jul 2003 14:40:16 -0400, Mark R. Diggory wrote: Brent Worden wrote: This example also helps illustrate what I would like the design of the library to proceed: 1) There are a collection of utility objects to perform standard operations on standard input. StatUtils is a good

Re: [math][functor] More Design Concerns

2003-07-01 Thread J.Pietschmann
[EMAIL PROTECTED] wrote: I would steer away for primative as much as possible. Keep in mind that excessive object creation can and usually is a significant performance drain, both because it is slow in itself despite all kinds of optimization as well as causing more GC. J.Pietschmann

Re: [math][functor] More Design Concerns

2003-07-01 Thread Al Chou
--- J.Pietschmann [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: I would steer away for primative as much as possible. Keep in mind that excessive object creation can and usually is a significant performance drain, both because it is slow in itself despite all kinds of optimization as

Re: [math][functor] More Design Concerns

2003-07-01 Thread Rodney Waldhoff
On Tue, 1 Jul 2003, Mark R. Diggory wrote: Part of this issue is technical the other political, [...] [Functor] isn't going to be available as a maven/build dependency until it graduates. For the record, whether appropriate or not, other commons-sandbox components are available via maven,

Re: [math][functor] More Design Concerns

2003-07-01 Thread Mark R. Diggory
Rodney Waldhoff wrote: On Tue, 1 Jul 2003, Mark R. Diggory wrote: Part of this issue is technical the other political, [...] [Functor] isn't going to be available as a maven/build dependency until it graduates. For the record, whether appropriate or not, other commons-sandbox components

[math] abstact nonsense was Re: [math][functor] More Design Concerns

2003-07-01 Thread Phil Steitz
The changed subject line is a pun that I hope none will find insulting - sort of a little math joke. Abstract nonsense is the term that some mathematicians (including some who love the stuff) use to refer to category theory, the birthplace of the functor concept. To conserve bandwidth, I am

RE: [math][functor] More Design Concerns

2003-07-01 Thread Brent Worden
-Original Message- From: J.Pietschmann [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 2:43 PM To: Jakarta Commons Developers List Subject: Re: [math][functor] More Design Concerns [EMAIL PROTECTED] wrote: I would steer away for primative as much as possible. Keep

Re: [math][functor] More Design Concerns

2003-06-30 Thread J.Pietschmann
Phil Steitz wrote: I agree. My preference would be to eliminate the original RootFinding.java and refactor the distribution inversion methods to use the new framework. Before taking that step, however, I would like to hear Brent's opinion on what might be improved in the new framework. I've

RE: [math][functor] More Design Concerns

2003-06-30 Thread Brent Worden
Sorry for my non-response on any part of this thread. I've been away on vacation. -Original Message- From: Phil Steitz [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 7:20 PM To: Jakarta Commons Developers List Subject: Re: [math][functor] More Design Concerns J.Pietschmann

Re: [math][functor] More Design Concerns

2003-06-28 Thread J.Pietschmann
Phil Steitz wrote: 3 Both MathException and ConvergenceException don't compile on Java 1.3 and nobody noticed. This is ugly: Ranks inserted (IMHO, of course) Agreed with rankings. However, I think in the long term either the recursive exception should be factored out of [lang] into a separate

Re: [math][functor] More Design Concerns

2003-06-27 Thread Phil Steitz
Al Chou wrote: --- Phil Steitz [EMAIL PROTECTED] wrote: Does staticness preclude extensibility? I assume final-ity would, but we didn't declare any methods final, AFAIK. Strictly speaking, no; but static methods do not support polymorphism and inheritance in the way that instance methods do.

Re: [math][functor] More Design Concerns

2003-06-27 Thread Al Chou
--- J.Pietschmann [EMAIL PROTECTED] wrote: Al Chou wrote: Does staticness preclude extensibility? ... I clearly have never studied for a Java certification. g Thanks for the clarification, Phil. No difference to C++ or any other language with class methods I ever met. I'm not much of

Re: [math][functor] More Design Concerns

2003-06-27 Thread Mark R. Diggory
J.Pietschmann wrote: 5 Static functions for calculating higher moments for arrays are unwise, because the array is repeatedly scanned if several moments are to be computed. This should be encapsulated in an object which can hold already computed results across invocations of different

Re: [math][functor] More Design Concerns

2003-06-27 Thread Phil Steitz
J.Pietschmann wrote: Mark R. Diggory wrote: Further comments: 1 Now there are two root finding frameworks in place. I think this should be unified. I agree. My preference would be to eliminate the original RootFinding.java and refactor the distribution inversion methods to use the new

Re: [math][functor] More Design Concerns

2003-06-26 Thread Al Chou
--- Phil Steitz [EMAIL PROTECTED] wrote: (2) Considerations a.) Is consistent library design important?Can all these models interace effectively? Are all these different design models required? Is there a single design model that can span the entire library? IMHO, the most important

Re: [math][functor] More Design Concerns

2003-06-25 Thread Mark R. Diggory
Rodney Waldhoff wrote: On Tue, 24 Jun 2003, Mark R. Diggory wrote: Either way, I hope some of us will take a quick over the the package and comment according about their opinion. I hope Rodney Waldhoff will feel comfortable about stepping back in and discussing some more about his approach

Re: [math][functor] More Design Concerns

2003-06-25 Thread Phil Steitz
(2) Considerations a.) Is consistent library design important?Can all these models interace effectively? Are all these different design models required? Is there a single design model that can span the entire library? IMHO, the most important considerations are 1) how easy the library will be

Re: [math][functor] More Design Concerns

2003-06-25 Thread David Graham
c.) What is the platform of interest for [math]? Server Side or Application. Remember that Jakarta's mission is create *server-side* libraries: http://jakarta.apache.org/site/mission.html That doesn't mean that a library couldn't be used in client-side apps but it does mean that your

[math][functor] More Design Concerns

2003-06-24 Thread Mark R. Diggory
(1) Overview of the library design to date [analysis]: Uses Objectified Functions, or Functors these objects resemble the same approach used in the Commons sandbox Functor package. [stats]: Univariate use what amount to Data Beans with get/set style methods, StatUtils provide easy static access