#include <float.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
Go to the source code of this file.
Defines | |
#define | max(x, y) (((x)>(y))?(x):(y)) |
#define | min(x, y) (((x)<(y))?(x):(y)) |
#define | SKIP_ELEMENT |
#define | SKIP_TARGET |
Functions | |
int | clean_up (FILE *fp_restore, FILE *fp, const char *msg) |
void | exit_with_help () |
int | main (int argc, char **argv) |
void | output (int index, double value) |
void | output_target (double value) |
char * | readline (FILE *input) |
Variables | |
double * | feature_max |
double * | feature_min |
char * | line = NULL |
double | lower = -1.0 |
int | max_index |
int | max_line_len = 1024 |
int | min_index |
long int | new_num_nonzeros = 0 |
long int | num_nonzeros = 0 |
double | upper = 1.0 |
double | y_lower |
double | y_max = -DBL_MAX |
double | y_min = DBL_MAX |
int | y_scaling = 0 |
double | y_upper |
#define SKIP_ELEMENT |
while(*p!=':') ++p;\ ++p;\ while(isspace(*p)) ++p;\ while(*p && !isspace(*p)) ++p;
#define SKIP_TARGET |
while(isspace(*p)) ++p;\
while(!isspace(*p)) ++p;
int clean_up | ( | FILE * | fp_restore, |
FILE * | fp, | ||
const char * | msg | ||
) |
Definition at line 386 of file svm-scale.c.
void exit_with_help | ( | ) |
Definition at line 7 of file svm-scale.c.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 42 of file svm-scale.c.
void output | ( | int | index, |
double | value | ||
) |
Definition at line 364 of file svm-scale.c.
void output_target | ( | double | value | ) |
Definition at line 350 of file svm-scale.c.
char * readline | ( | FILE * | input | ) |
Definition at line 332 of file svm-scale.c.
double* feature_max |
Definition at line 25 of file svm-scale.c.
double* feature_min |
Definition at line 26 of file svm-scale.c.
char* line = NULL |
Definition at line 21 of file svm-scale.c.
double lower = -1.0 |
Definition at line 23 of file svm-scale.c.
int max_index |
Definition at line 29 of file svm-scale.c.
int max_line_len = 1024 |
Definition at line 22 of file svm-scale.c.
int min_index |
Definition at line 30 of file svm-scale.c.
long int new_num_nonzeros = 0 |
Definition at line 32 of file svm-scale.c.
long int num_nonzeros = 0 |
Definition at line 31 of file svm-scale.c.
double upper = 1.0 |
Definition at line 23 of file svm-scale.c.
double y_lower |
Definition at line 23 of file svm-scale.c.
double y_max = -DBL_MAX |
Definition at line 27 of file svm-scale.c.
double y_min = DBL_MAX |
Definition at line 28 of file svm-scale.c.
int y_scaling = 0 |
Definition at line 24 of file svm-scale.c.
double y_upper |
Definition at line 23 of file svm-scale.c.