blob: 811aac399a53ecf8d4b040686a5374769b834076 (
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 dmomentrowa (double* inp, int row, int col, double ord, double* out)
{
double vect[row];
for(int i = 0; i < col ; i++)
{
for(int j = 0; j < row ; j++)
{
vect[j] = inp[j + i*row];
}
out[i] = dmoments(vect, row, ord);
}
}
|