You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by "Mugoma Joseph O." <mu...@yengas.com> on 2013/11/29 00:39:05 UTC

[math] Determinig steep drop (high rate of change) in a set of numbers

Hello,

I have a set of numbers arranged in desc order. I would like to determine
if there's any steep drop and where it occurs i.e. where rate of change is
high.

e.g. if I define steep drop (high Rate of Change) as any change more than
30% then, for the following numbers, the steep drop will be between 4.5 &
2:

11.9, 10.5, 10, 9.9, 9.5, 8.5, 7.9, 6.5, 6, 5, 4.5, 2, 1.9, 1.5, 1.1, 1

Is there a function is commons maths that I can use to determine steep drop?

Thanks in advance.

Mugoma.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Re: [math] Determinig steep drop (high rate of change) in a set of numbers

Posted by Phil Steitz <ph...@gmail.com>.
On 11/28/13, 3:39 PM, Mugoma Joseph O. wrote:
> Hello,
>
> I have a set of numbers arranged in desc order. I would like to determine
> if there's any steep drop and where it occurs i.e. where rate of change is
> high.
>
> e.g. if I define steep drop (high Rate of Change) as any change more than
> 30% then, for the following numbers, the steep drop will be between 4.5 &
> 2:
>
> 11.9, 10.5, 10, 9.9, 9.5, 8.5, 7.9, 6.5, 6, 5, 4.5, 2, 1.9, 1.5, 1.1, 1
>
> Is there a function is commons maths that I can use to determine steep drop?

No, there is nothing in [math] any simpler than just walking the
array, computing the changes and comparing against the threshold.

Phil
>
> Thanks in advance.
>
> Mugoma.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org