You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.4 KiB
41 lines
1.4 KiB
/*
|
|
* 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__ */
|
|
|