1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
/*
* This file is part of MAMMULT: Metrics And Models for Multilayer Networks
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __FIT_UTILS_H__
#define __FIT_UTILS_H__
void load_sequence(char *fname, double **v, int *N);
void load_sequence_col(char *fname, double **v, int *N, int col);
void exp_bin_cnt(double *v, int N, double alpha, double **x, double **y, int *num);
void exp_bin_avg(double *v, double *w, int N, double alpha, double **x, double **y, int *num);
void dump_distr(double *x, double *y, int N);
void compact_distr(double *x, double *y, int *num);
void map_vec(double *v, int N, double (*f)(double));
void normalize_distr(double *x, double *y, int num);
void fit_current_trend(double *k, double *q, int N, int *pairing,
double *mu, double *a, double *corr);
#endif /* __FIT_UTILS_H__ */
|