blob: 574ebe760ca44bf123c4c02214a0ca2c4ceaf537 (
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 smomentrowa (float* inp, int row, int col, double ord, float* out)
{
float vect[row];
for(int i = 0; i < col ; i++)
{
for(int j = 0; j < row ; j++)
{
vect[j] = inp[j + i*row];
}
out[i] = smoments(vect, row, ord);
}
}
|