summaryrefslogtreecommitdiff
path: root/src/c/statisticsFunctions/moment/zmomentcola.c
blob: 2b3cebb157397a3d8e7d973c942c7978fdc1de69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "moment.h"
#include "doubleComplex.h"
#include "floatComplex.h"

void zmomentcola (doubleComplex* inp, int row, int col, double ord, doubleComplex* 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] = zmoments(vect, col, ord);
    }

}