diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2015-10-23 11:28:48 +0200 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2015-10-23 11:28:48 +0200 |
| commit | 9beae7886a9d17242e705114d0039a007481abbc (patch) | |
| tree | 4ed601ed7e7151a0c93540e781d6c5f596be3ee4 /src | |
| parent | fixed nonlinearity (diff) | |
| download | gensvm-9beae7886a9d17242e705114d0039a007481abbc.tar.gz gensvm-9beae7886a9d17242e705114d0039a007481abbc.zip | |
remove some unnecessary spaces
Diffstat (limited to 'src')
| -rw-r--r-- | src/GenSVMgrid.c | 4 | ||||
| -rw-r--r-- | src/gensvm_init.c | 18 |
2 files changed, 11 insertions, 11 deletions
diff --git a/src/GenSVMgrid.c b/src/GenSVMgrid.c index b4d3524..376eb54 100644 --- a/src/GenSVMgrid.c +++ b/src/GenSVMgrid.c @@ -76,7 +76,7 @@ void exit_with_help() int main(int argc, char **argv) { char input_filename[MAX_LINE_LENGTH]; - + struct Training *training = gensvm_init_training(); struct GenData *train_data = gensvm_init_data(); struct GenData *test_data = gensvm_init_data(); @@ -87,7 +87,7 @@ int main(int argc, char **argv) exit_with_help(); parse_command_line(argc, argv, input_filename); - note("Reading training file\n"); + note("Reading training file\n"); read_training_from_file(input_filename, training); note("Reading data from %s\n", training->train_data_file); diff --git a/src/gensvm_init.c b/src/gensvm_init.c index 89002f8..6be2706 100644 --- a/src/gensvm_init.c +++ b/src/gensvm_init.c @@ -30,7 +30,7 @@ struct GenModel *gensvm_init_model() { struct GenModel *model = Malloc(struct GenModel, 1); - + // set default values model->p = 1.0; model->lambda = pow(2, -8.0); @@ -57,7 +57,7 @@ struct GenModel *gensvm_init_model() /** * @brief Initialize a GenData structure - * + * * @details * A GenData structure is initialized and default values are set. * A pointer to the initialized data is returned. @@ -78,7 +78,7 @@ struct GenData *gensvm_init_data() data->kernelparam = NULL; return data; -} +} /** * @brief Allocate memory for a GenModel @@ -186,7 +186,7 @@ void gensvm_reallocate_model(struct GenModel *model, long n, long m) fprintf(stderr, "Failed to reallocate UU\n"); exit(1); } - + tmp = (double *) realloc(model->Q, n*K*sizeof(double)); if (tmp) { Memset(tmp, double, n*K); @@ -195,7 +195,7 @@ void gensvm_reallocate_model(struct GenModel *model, long n, long m) fprintf(stderr, "Failed to reallocate Q\n"); exit(1); } - + tmp = (double *) realloc(model->H, n*K*sizeof(double)); if (tmp) { Memset(tmp, double, n*K); @@ -213,7 +213,7 @@ void gensvm_reallocate_model(struct GenModel *model, long n, long m) fprintf(stderr, "Failed to reallocate R\n"); exit(1); } - + tmp = (double *) realloc(model->rho, n*sizeof(double)); if (tmp) { Memset(tmp, double, n); @@ -222,7 +222,7 @@ void gensvm_reallocate_model(struct GenModel *model, long n, long m) fprintf(stderr, "Failed to reallocte rho\n"); exit(1); } - + model->n = n; } if (model->m != m) { @@ -252,7 +252,7 @@ void gensvm_reallocate_model(struct GenModel *model, long n, long m) fprintf(stderr, "Failed to reallocate Vbar\n"); exit(1); } - + model->m = m; } } @@ -285,7 +285,7 @@ void gensvm_free_model(struct GenModel *model) } /** - * @brief Free allocated GenData struct + * @brief Free allocated GenData struct * * @details * Simply free a previously allocated GenData struct by freeing all its |
