Main Page | Alphabetical List | Compound List | File List | Compound Members | File Members

ECorrSimulator.cc File Reference

#include <iostream>
#include <stdlib.h>
#include <sys/time.h>

Include dependency graph for ECorrSimulator.cc:

Include dependency graph

Go to the source code of this file.

Compounds

class  ECorrSimulator

Defines

#define P(X)   do { std::cerr << #X"=" << X << std::endl; std::cerr.flush(); } while(0)
 ECorrSimulator.cc -*- c++ -*- Hans-Peter Stoerr Mon Nov 17 2003 We try to find the best correction algorithm
Id
ECorrSimulator.cc,v 1.4 2003/12/29 18:06:31 stoerr Exp
.


Functions

double probCorr (const int numBlocks, const int numErrors, const int stripeLen)
double probDoubleCorr (const int numBlocks, const int numErrors, const int stripeLen)
int main ()

Variables

const int gMaxErrors = 4


Define Documentation

#define P  )     do { std::cerr << #X"=" << X << std::endl; std::cerr.flush(); } while(0)
 

ECorrSimulator.cc -*- c++ -*- Hans-Peter Stoerr Mon Nov 17 2003 We try to find the best correction algorithm

Id
ECorrSimulator.cc,v 1.4 2003/12/29 18:06:31 stoerr Exp
.

Definition at line 9 of file ECorrSimulator.cc.

Referenced by checkErrorProtection(), correctfile(), main(), probCorr(), protectfile(), and readoptions().


Function Documentation

int main  ) 
 

Definition at line 105 of file ECorrSimulator.cc.

References P, probCorr(), and probDoubleCorr().

Here is the call graph for this function:

double probCorr const int  numBlocks,
const int  numErrors,
const int  stripeLen
 

Definition at line 81 of file ECorrSimulator.cc.

References ECorrSimulator::hasErrors(), P, and ECorrSimulator::stripeCorrect().

Referenced by main().

Here is the call graph for this function:

double probDoubleCorr const int  numBlocks,
const int  numErrors,
const int  stripeLen
 

Definition at line 94 of file ECorrSimulator.cc.

References ECorrSimulator::doubleStripeCorrect(), and ECorrSimulator::hasErrors().

Referenced by main().

Here is the call graph for this function:


Variable Documentation

const int gMaxErrors = 4
 

Definition at line 11 of file ECorrSimulator.cc.

Referenced by ECorrSimulator::stripeCorrect().


Generated on Tue Dec 30 12:07:35 2003 for ErrorProtect by doxygen 1.3.2