summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/statisticsFunctions/moment/dmomentcola.c
blob: 538328e3e2b831167d57308410a2b7c789654a7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "moment.h"

void dmomentcola (double* inp, int row, int col, double ord, double* out)
{
    double vect[col];
    for(int i = 0; i < row ; i++)
    {
	for(int j = 0; j < col ; j++)
	{
	    vect[j] = inp[i + j*row];
	}
	out[i] = dmoments(vect, col, ord);
    }

}