mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-07-04 13:03:13 +02:00
14 lines
433 B
C
14 lines
433 B
C
|
|
#ifndef SPLIT_H
|
||
|
|
#define SPLIT_H
|
||
|
|
|
||
|
|
void calculate_symmetric_weights(int N, double middle_weight, const double *factors,
|
||
|
|
double *weights);
|
||
|
|
|
||
|
|
void scale_to_total(double X, const double *weights, int N, double *distances);
|
||
|
|
|
||
|
|
void split_x_into_n_symmetrically(double X, int N, double *factors, double *distances);
|
||
|
|
|
||
|
|
void split_x_into_n_middle(double X, int N, double middle_value, double *distances);
|
||
|
|
|
||
|
|
#endif
|