Hi Peppe,
Interesting class, I did not know that /mean/, /variance /and /standard
deviation/ could be calculated incrementally in a single pass ;-)
Currently, you can compute statistics against several double arrays in a
cumulative way, but I'm not sure it is intentional (and not sure it
gives expected results for all indicators).
If it is not intentional, maybe an option woud be :
public StatisticIndices {
double indices1, indices2...
(private ?) StatisticIndices() {
// initialisation of indices (only those != 0.0 ?)
}
*static* *StatisticIndices* computeIndices(double[] array) {
StatisticIndices indices = new StatisticIndices();
// computation
return indices;
}
}
I found also a small problem with array 0, 1, 2 : probably because of
the small size of the array, this leads to an IndexOutOfBoundException
when it computes index75
Michaël
Le 05/06/2018 à 17:57, Giuseppe Aruta a écrit :
I added the class on OJ5839, under com.vividsolutions.jump.util package
2018-06-05 17:53 GMT+02:00 Giuseppe Aruta <giuseppe.ar...@gmail.com
<mailto:giuseppe.ar...@gmail.com>>:
I starded to work on class
es.unex.sextante.math.simpleStats.SimpleStats (Sextante under
GPL2) that I modified and extended for my purpose: a set of
statistic operations to be used on a (raster) histogram, The final
project is to add a raster histogram plugin to OJ
Peppe
2018-06-05 13:54 GMT+02:00 <edgar.sol...@web.de
<mailto:edgar.sol...@web.de>>:
right Mike, or simply placed alongside in that package.
Peppe, did you create the class from scratch or where did you
get the code, under which license?
..ede
On 05.06.2018 13:52, Michaël Michaud wrote:
> Hi Peppe,
>
> If it is a collection of pure static math methods with no
dependency mabe it can take place in
>
> com.vividsolutions.jump.util.MathUtil
>
> Michaël
>
>
> Le 05/06/2018 à 09:32, Giuseppe Aruta a écrit :
>> Hi all,
>> I am going to add a new class, "StatisticsIndices", which
calculates position and statistics indices of an array of numbers.
>> The following inidices will be available:
>>
>> count
>> total sum
>> max
>> min
>> mean
>> 25 percentile
>> median
>> 75 percentile
>> standard deviation
>> coefficinet of variation
>> root Mean Squared
>> Skewness
>> Kurtosis
>>
>> This class could be used for any array of number (an array
formed by raster cell values from a RasterImageLayer , an
array from numeric attributes from a Vector Layer).
>> For this reason I would like to add this class into a
general visible package.
>> My idea is to create an "org.openjump.core.math" package
into OJ tree.
>> I would like to have your opinion.
>> Best
>> Peppe
>>
>>
>>
>>
------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>
>>
>> _______________________________________________
>> Jump-pilot-devel mailing list
>> Jump-pilot-devel@lists.sourceforge.net
<mailto:Jump-pilot-devel@lists.sourceforge.net>
>>
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
<https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel>
>
>
>
>
------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>
>
>
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
<mailto:Jump-pilot-devel@lists.sourceforge.net>
>
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
<https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
<mailto:Jump-pilot-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
<https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel