UQTk: Uncertainty Quantification Toolkit 3.1.5
pdf_cl.cpp File Reference

Command-line utility for KDE given samples. More...

#include <cstdio>
#include <stddef.h>
#include <fstream>
#include <string>
#include <math.h>
#include <iostream>
#include <getopt.h>
#include "Array1D.h"
#include "Array2D.h"
#include "assert.h"
#include "tools.h"
#include "arrayio.h"
#include "arraytools.h"

Macros

#define FILE_IN   "data_in.dat"
 default input file
 
#define GRID   100
 default number of grid pts in each dimension
 
#define N_CL   1
 default number of clusters
 
#define BFAC   1.0
 default bandwidth scale factor
 

Functions

int usage ()
 Displays information about this program.
 
int main (int argc, char *argv[])
 Program to compute PDF via KDE given samples.
 

Detailed Description

Command-line utility for KDE given samples.

Author
K. Sargsyan, C. Safta 2013 -

Macro Definition Documentation

◆ BFAC

#define BFAC   1.0

default bandwidth scale factor

◆ FILE_IN

#define FILE_IN   "data_in.dat"

default input file

◆ GRID

#define GRID   100

default number of grid pts in each dimension

◆ N_CL

#define N_CL   1

default number of clusters

Function Documentation

◆ main()

int main ( int argc,
char * argv[] )

Program to compute PDF via KDE given samples.

Read the user input

Input checks

Prepare grid

Compute densities

Write PDF to file

◆ usage()

int usage ( )

Displays information about this program.