pmm  1.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Data Structures | Typedefs | Functions
pmm_comp.c File Reference

Program to compare two models. More...

#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <math.h>
#include <gsl/gsl_statistics_double.h>
#include "pmm_model.h"
#include "pmm_octave.h"
#include "pmm_cfgparser.h"
#include "pmm_log.h"
#include "pmm_param.h"

Go to the source code of this file.

Data Structures

struct  pmm_comp_options

Typedefs

typedef struct pmm_comp_options PMM_Comp_Options

Functions

void usage ()
void parse_args (struct pmm_comp_options *opts, int argc, char **argv)
double correlate_models (struct pmm_model *approx_model, struct pmm_model *base_model)
int main (int argc, char **argv)

Detailed Description

Program to compare two models.

This file contains the pmm_comp program, which is a simple utility to compare two models

Definition in file pmm_comp.c.

Typedef Documentation

structure storing options for pmm_comp tool

Function Documentation

double correlate_models ( struct pmm_model approx_model,
struct pmm_model base_model 
)

find the correlation between two models

Parameters
approx_modelpointer to so called approximation model
base_modelpointer to base model
Returns
the correlation factor

Definition at line 148 of file pmm_comp.c.

int main ( int  argc,
char **  argv 
)

pmm_comp compares pairs of model files

shows statistics such as correlation, number of points, time spent benchmarking, etc.

Definition at line 253 of file pmm_comp.c.

void parse_args ( struct pmm_comp_options opts,
int  argc,
char **  argv 
)

parse arguments for pmm_comp tool

Parameters
optspointer to options structure
argcnumber of command line arguments
argvcommand line arguments character array pointer

Definition at line 76 of file pmm_comp.c.

void usage ( )

print command line usage for pmm_comp tool

Definition at line 59 of file pmm_comp.c.