[LANG][COLLECTIONS] Require a static function to swap 2 elements in a array (primitive as well non-primitive)

2015-06-17 Thread venkatesha murthy
Hi All I was looking to ArrayUtils(version 3.4) to hopefully find a swap method . Is this some thing available else where or can i implement one. please suggest. Also i am not sure which commons lib this can be placed with. please let know about that as well. thanks venkat.

Re: [LANG][COLLECTIONS] Require a static function to swap 2 elements in a array (primitive as well non-primitive)

2015-06-18 Thread venkatesha murthy
nk such a feature belongs to the ArrayUtils class in lang. > > Thomas > > On Thu, Jun 18, 2015 at 5:08 AM, venkatesha murthy < > venkateshamurth...@gmail.com> wrote: > > > Hi All > > > > I was looking to ArrayUtils(version 3.4) to hopefully find a swap method >

Re: [Math] Utilization of Lombok

2015-09-27 Thread venkatesha murthy
Do we know if lombok is supported on all flavours of java for instance IBM JDK, Open JDK , java 8 etc... Was just thinking of the future proof readiness. Iam absolutely interested in lombok and even today use it for most demo purposes and have been stressing for its use where Oracle JDK is the pr

Help required for how to unsubscribe

2016-11-17 Thread venkatesha murthy
Please help. thanks venkat.

[MATH-1120] Needed opinion about support on variations in percentile calculation

2014-05-21 Thread venkatesha murthy
Hi All, The existing Percentile class calculates the percentile based on the quantile position of the array fixed as p * (N+1)/100 for a pth Percentile on an Array of size N. However if we were to add these numbers in MS Excel to calculate the percentile it provides a different result and closely

Re: [MATH-1120] Needed opinion about support on variations in percentile calculation

2014-05-21 Thread venkatesha murthy
:26 -0700, Phil Steitz wrote: > >> On 5/21/14, 12:18 PM, venkatesha murthy wrote: > >>> Hi All, > >>> > >>> The existing Percentile class calculates the percentile based on > >>> the > >>> quantile position of the array fixed as >

Re: [MATH-1120] Needed opinion about support on variations in percentile calculation

2014-06-01 Thread venkatesha murthy
computation. kth selection, pivoting can be futher encapsulated as nested classes and be used within EstimationTecnhique Enum. I have updated the bug 1120 along with a patch for more details. Please let know your opinions. Thanks Venkat. On Thu, May 22, 2014 at 7:53 AM, venkatesha murthy < venkateshamu

Re: [MATH-1120] Needed opinion about support on variations in percentile calculation

2014-06-11 Thread venkatesha murthy
On Wed, Jun 11, 2014 at 4:10 PM, Gilles wrote: > On Mon, 9 Jun 2014 20:03:57 +0800 (SGT), venkatesha m wrote: > >> Hi All, >> >> I am looking for opinion on the name of the enum for the various >> estimation strategies. >> This is a public static enum under Percentile and i wish to call it >> Est

Re: [MATH-1120] Needed opinion about support on variations in percentile calculation

2014-06-12 Thread venkatesha murthy
All comments are incorporated except for type 10 of wkipedia as i couldnt get a comparing tool to provide. I have also added min and maxLimits to javadoc. Please let know. On Wed, Jun 11, 2014 at 6:27 PM, venkatesha murthy < venkateshamurth...@gmail.com> wrote: > > > On Wed, Ju

Re: [Math] MATH-1129 and Re: [MATH-1120] Needed opinion about support on variations in, percentile calculation

2014-06-19 Thread venkatesha murthy
On Thu, Jun 19, 2014 at 2:10 AM, Luc Maisonobe wrote: > > Le 18/06/2014 20:28, venkatesha m a écrit : > > Hi Luc, Gilles > > Hi Venkat > > > > > First of, Iam immensly thankful to all your comments on this patch. > > Next, i am attaching my new patch with today's date(18-jun). However > > please a

Re: [Math] Supported Java versions

2014-06-20 Thread venkatesha murthy
On Fri, Jun 20, 2014 at 9:00 PM, Gilles wrote: > On Fri, 20 Jun 2014 16:57:41 +0200, Thomas Neidhart wrote: >> >> On 20 Jun 2014 16:37, "Gilles" wrote: >>> >>> >>> On Fri, 20 Jun 2014 16:18:08 +0200, Thomas Neidhart wrote: Java 5 is already eol. Anybody still using it is certainly

[MATH-1130] Patch on canequal (math-1130-canequal.patch) to make faster equals check with nan

2014-06-23 Thread venkatesha murthy
I am adding a canEqual method in MathUtils since neither Math.equals nor Precision.equalsIncludingNaN performs better under heavy load (I have attached the test code for the same in the patch). The reason as far as i can think is : In case of equals it keeps churning new objects and makes Double.

[MATH-1130] Patch on remove and replace (math-1130-remove.patch and math-1130-replace.patch)

2014-06-23 Thread venkatesha murthy
I am adding the following 2 methods in MathArrays. Please let me know if any one has concerns.(The math-1130-remove.patch and math-1130-replace.patch has te code for reference) a) Replace a old val with new val in a double array i) public static double[] replaceInRange(final double[] values,final

Re: [math] use case for NaNStrategy.FIXED?

2014-06-23 Thread venkatesha murthy
On Tue, Jun 24, 2014 at 12:08 AM, Luc Maisonobe wrote: > Hi all, > > While looking further in Percentile class for MATH-1120, I have found > another problem in the current implementation. NaNStrategy.FIXED should > leave the NaNs in place, but at the end of the KthSelector.select > method, a call

Re: [MATH-1130] Patch on canequal (math-1130-canequal.patch) to make faster equals check with nan

2014-06-23 Thread venkatesha murthy
On Tue, Jun 24, 2014 at 1:46 AM, Gilles wrote: > Hi. > > > On Tue, 24 Jun 2014 00:06:16 +0530, venkatesha murthy wrote: >> >> I am adding a canEqual method in MathUtils since neither Math.equals nor >> >> Precision.equalsIncludingNaN performs better under hea

Re: [MATH-1130] Patch on canequal (math-1130-canequal.patch) to make faster equals check with nan

2014-06-23 Thread venkatesha murthy
On Tue, Jun 24, 2014 at 8:36 AM, venkatesha murthy wrote: > On Tue, Jun 24, 2014 at 1:46 AM, Gilles wrote: >> Hi. >> >> >> On Tue, 24 Jun 2014 00:06:16 +0530, venkatesha murthy wrote: >>> >>> I am adding a canEqual meth

Re: [math] use case for NaNStrategy.FIXED?

2014-06-24 Thread venkatesha murthy
On Wed, Jun 25, 2014 at 12:21 AM, Luc Maisonobe wrote: > Hi Venkat, > > Le 23/06/2014 21:08, venkatesha murthy a écrit : > > On Tue, Jun 24, 2014 at 12:08 AM, Luc Maisonobe > wrote: > >> Hi all, > >> > >> While looking further in Percentile class for

Re: [math] use case for NaNStrategy.FIXED?

2014-06-24 Thread venkatesha murthy
On Wed, Jun 25, 2014 at 9:35 AM, venkatesha murthy < venkateshamurth...@gmail.com> wrote: Can i put a patch for this change? > > On Wed, Jun 25, 2014 at 12:21 AM, Luc Maisonobe > wrote: > >> Hi Venkat, >> >> Le 23/06/2014 21:08, venkatesha murthy a écrit : &

[MATH-1120] Refactor KthSelector and PivotingStrategy out of Percentile

2014-06-24 Thread venkatesha murthy
The Percentile actually uses KthSelector logic and is dependent on only KthSelector however the variability part is pivoting strategy. Given that both KthSelector and Pivoting are independent we could make them as utility classes or may be functions with in MathUtils with exposed interfaces. Here

Re: [MATH-1130] Patch on canequal (math-1130-canequal.patch) to make faster equals check with nan

2014-06-25 Thread venkatesha murthy
On Wed, Jun 25, 2014 at 7:16 PM, Gilles wrote: > Hi. > > [...] > > > The change i am bringing in is simple in that in any case of either of > them nan or both then return true or false and if and only if both are > *not nan* then get to Precision.equals > > Does any o

Re: [math] use case for NaNStrategy.FIXED?

2014-06-25 Thread venkatesha murthy
On Wed, Jun 25, 2014 at 12:45 PM, Luc Maisonobe wrote: > Le 25/06/2014 06:10, venkatesha murthy a écrit : > > On Wed, Jun 25, 2014 at 9:35 AM, venkatesha murthy < > > venkateshamurth...@gmail.com> wrote: > > Can i put a patch for this change? > > I think we

Re: [MATH-1120] Refactor KthSelector and PivotingStrategy out of Percentile

2014-06-27 Thread venkatesha murthy
On Wed, Jun 25, 2014 at 12:54 PM, Luc Maisonobe wrote: > Hi Venkat, > > Le 25/06/2014 06:21, venkatesha murthy a écrit : > > The Percentile actually uses KthSelector logic and is dependent on only > > KthSelector > > however the variability part is pivoting strate

Re: [math] use case for NaNStrategy.FIXED? {Need Opinion for a NaNTransformer]

2014-06-27 Thread venkatesha murthy
On Thu, Jun 26, 2014 at 12:39 AM, venkatesha murthy < venkateshamurth...@gmail.com> wrote: > > > > On Wed, Jun 25, 2014 at 12:45 PM, Luc Maisonobe > wrote: > >> Le 25/06/2014 06:10, venkatesha murthy a écrit : >> > On Wed, Jun 25, 2014 at 9:35 AM, v

Re: [math] use case for NaNStrategy.FIXED?

2014-06-29 Thread venkatesha murthy
On Sun, Jun 29, 2014 at 1:25 AM, Phil Steitz wrote: > On 6/25/14, 12:12 AM, Luc Maisonobe wrote: > > Le 25/06/2014 06:05, venkatesha murthy a écrit : > >> On Wed, Jun 25, 2014 at 12:21 AM, Luc Maisonobe > wrote: > >> > >>> Hi Venkat, > >>>

Re: [math] use case for NaNStrategy.FIXED?

2014-06-29 Thread venkatesha murthy
On Sun, Jun 29, 2014 at 10:55 PM, Phil Steitz wrote: > On 6/29/14, 9:48 AM, venkatesha murthy wrote: > > On Sun, Jun 29, 2014 at 1:25 AM, Phil Steitz > wrote: > > > >> On 6/25/14, 12:12 AM, Luc Maisonobe wrote: > >>> Le 25/06/2014 06:05, venkatesha murth

Re: [math] use case for NaNStrategy.FIXED?

2014-06-30 Thread venkatesha murthy
On Mon, Jun 30, 2014 at 4:11 AM, Gilles wrote: > On Sun, 29 Jun 2014 14:39:51 -0700, Phil Steitz wrote: > >> On 6/29/14, 2:30 PM, Gilles wrote: >> >>> On Sun, 29 Jun 2014 10:25:58 -0700, Phil Steitz wrote: >>> >>>> On 6/29/14, 9:48 AM, venkatesha

Re: [MATH-1130] Patch on remove and replace (math-1130-remove.patch and math-1130-replace.patch)

2014-07-04 Thread venkatesha murthy
math (such as perhaps DoubleArray) c) just to retain these as private static within which ever main class wanted it Please let know your opinion on these. thanks venkat. On Tue, Jun 24, 2014 at 12:19 AM, venkatesha murthy < venkateshamurth...@gmail.com> wrote: > I am adding the fo

Re: [MATH-1120] Refactor KthSelector and PivotingStrategy out of Percentile

2014-07-09 Thread venkatesha murthy
Could some one respond please On Sat, Jul 5, 2014 at 8:06 PM, venkatesha m wrote: > > > > > On Saturday, 28 June 2014 12:08 AM, venkatesha murthy < > venkateshamurth...@gmail.com> wrote: > > > > On Wed, Jun 25, 2014 at 12:54 PM, Luc Maisonobe > wrote: &g

Re: [MATH-1120] Refactor KthSelector and PivotingStrategy out of Percentile

2014-07-12 Thread venkatesha murthy
On Thu, Jul 10, 2014 at 12:03 PM, Luc Maisonobe wrote: > Hi Venkat, > > Le 09/07/2014 18:56, venkatesha murthy a écrit : > > Could some one respond please > > > I'll have a look at this probably on Sunday. > We are all volunteer, so there may be some delay for ac

[math] when is 3.4 release scheduled.

2014-10-05 Thread venkatesha murthy
Hi I would like to know when is 3.4 math is scheduled for the release Please let me know. thanks murthy

[math] SynchronizedDescriptiveStatistics - Instead of using synchronized should we use read/write locks

2014-10-05 Thread venkatesha murthy
I see that this class and other SynchronizedSummaryStatistic class is using old style synchronized which synchronizes both reads and writes...so was wondering if we should switch to locks for better concurrency on reads Does any one have a concern if i make this change -Murthy

Re: [math] Include quartiles estimated using PSquarePercentile in SummaryStatistics

2014-10-13 Thread venkatesha murthy
Hi Phil, Though i did not add to StatisticalSummary i was actually working on a DescriptiveStatisticalSummary for all the Storeless variants inclusive of PSquarePercentile. Would it help if you can actually implement SummaryStatisitcs with an extended interface such as DescriptiveStatisticalSummar

Re: [math] Include quartiles estimated using PSquarePercentile in SummaryStatistics

2014-10-13 Thread venkatesha murthy
, venkatesha murthy < venkateshamurth...@gmail.com> wrote: > Hi Phil, > > Though i did not add to StatisticalSummary i was actually working on a > DescriptiveStatisticalSummary for all the Storeless variants inclusive of > PSquarePercentile. Would it help if you can actually implemen

Re: [math] Include quartiles estimated using PSquarePercentile in SummaryStatistics

2014-10-13 Thread venkatesha murthy
On Tue, Oct 14, 2014 at 6:05 AM, Phil Steitz wrote: > On 10/13/14 1:04 PM, venkatesha murthy wrote: > > Adding a bit more on this: > > a) The DescriptiveStatisticalSummary actually handles the rest of the > > functions such as addValue, getPercentile etc. > > b) I hav

Re: [math] Include quartiles estimated using PSquarePercentile in SummaryStatistics

2014-10-14 Thread venkatesha murthy
AM, Phil Steitz wrote: > On 10/13/14 8:55 PM, venkatesha murthy wrote: > > On Tue, Oct 14, 2014 at 6:05 AM, Phil Steitz > wrote: > > > >> On 10/13/14 1:04 PM, venkatesha murthy wrote: > >>> Adding a bit more on this: > >>> a) The Descriptive

Re: [math] Include quartiles estimated using PSquarePercentile in SummaryStatistics

2014-10-14 Thread venkatesha murthy
Many Thanks Phil, for answering all my questions. On Tue, Oct 14, 2014 at 10:19 PM, Phil Steitz wrote: > On 10/14/14 6:59 AM, venkatesha murthy wrote: > > ok. > > > > Wanted to understand advantage of having a container class for all > > storeless stats (just

[math]clarifications requested on the links on CM home page

2014-10-18 Thread venkatesha murthy
Hi All (Not sure if this is already discussed;) The source repository link still points to svn. Perhaps this can point to latest git link and then may be another old repo link can be given to svn(for read only) Next the Latest API Docs still takes us to 3.3 where as Last Published version is 3.4-

Re: Use of final modifiers - WAS svn commit: r1632171 [1/20] - in /commons/proper/beanutils/trunk/src: main/java/org/apache/commons/beanutils/ main/java/org/apache/commons/beanutils/converters/ main/j

2014-10-27 Thread venkatesha murthy
Does a custom annotation at a class level say @AccessLevel(default=PRIVATE/PROTECTED, final=true/false) that applies to all the variables declared help reduce the clutter. With this; only few variables may really require the non-final characteristics. May be a @NonFinal annotation can help their to