# Thread: "at regular intervals" problem

1. ## "at regular intervals" problem

ive a notepad of 'n' lines, each value in an array xArray[n]
now I've to find out "kurtosis" for every 5 values of 'n'
(for example, kurtosis(first 5 values), kurtosis(next 5 values), etc)
*kurtosis is a formula which can be written in an expression..
Java Code:
`double zz=((TotalLineCount*(TotalLineCount+1))/((TotalLineCount-1)*(TotalLineCount-2)*(TotalLineCount-3))*(kurtbr))-((3*(TotalLineCount-1)*(TotalLineCount-1))/ (TotalLineCount-2)*(TotalLineCount-3));`
*kurtbr is already been calculated by an expression. and now,
how do we create the loop to do it every five values.
ive tried this:
Java Code:
```for(int j=0;j<(n);j=j+5)
{
for(int k=j+0;k<j+5;k++)
{
double[] zz = /**the formula mentioned earlier**/ z1;

}
}```
is there a simpler technique?

regards
dhilip
Last edited by noobplus; 03-17-2012 at 01:24 PM.

2. ## Re: "at regular intervals" problem

Don't misuse polls.

db

3. ## Re: "at regular intervals" problem

Originally Posted by DarrylBurke
Don't misuse polls.

db
ok soz. did u understand my thread? :P

regards
dhilip
Last edited by noobplus; 03-17-2012 at 01:39 PM.

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•