Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Lit::Result Class Reference

#include <Result.h>

List of all members.

Public Member Functions

 Result ()
 ~Result ()
const ListGetList () const
const EventGetEvent () const
const std::map< short, double > & Get1dProb () const
const std::map< short, double > & GetNNProb () const
void Print () const
void Print (std::ostream &os) const

Private Member Functions

void Clear ()

Private Attributes

List fList
Event fEvent
std::map< short, double > fProb1d
std::map< short, double > fProbNN

Friends

class LikeModule


Constructor & Destructor Documentation

Lit::Result::Result  ) 
 

Definition at line 19 of file Result.cxx.

00020 {
00021 }

Lit::Result::~Result  ) 
 

Definition at line 24 of file Result.cxx.

00025 { 
00026 }


Member Function Documentation

void Lit::Result::Clear  )  [private]
 

Definition at line 29 of file Result.cxx.

References fList, fProb1d, and fProbNN.

Referenced by Lit::LikeModule::Find().

00030 { 
00031    fList.clear();
00032    fProb1d.clear();
00033    fProbNN.clear();   
00034 }

const std::map< short, double > & Lit::Result::Get1dProb  )  const [inline]
 

Definition at line 55 of file Result.h.

00056    {
00057       return fProb1d;
00058    }   

const Event & Lit::Result::GetEvent  )  const [inline]
 

Definition at line 51 of file Result.h.

00052    {
00053       return fEvent;
00054    }

const List & Lit::Result::GetList  )  const [inline]
 

Definition at line 47 of file Result.h.

References Lit::List.

Referenced by Lit::LikeModule::Find().

00048    {
00049       return fList;
00050    }

const std::map< short, double > & Lit::Result::GetNNProb  )  const [inline]
 

Definition at line 59 of file Result.h.

00060    {
00061       return fProbNN;
00062    }

void Lit::Result::Print std::ostream &  os  )  const
 

Definition at line 43 of file Result.cxx.

References fEvent, fList, fProb1d, fProbNN, and Lit::Print().

00044 {
00045    Lit::Print(fList, fEvent, os);
00046 
00047    os << "Nearest neighbors probability map" << std::endl;
00048    for(map<short, double>::const_iterator it = fProbNN.begin(); it != fProbNN.end(); ++it)
00049    {
00050       os << "class " << it -> first << ": " << it -> second << std::endl;
00051    }
00052 
00053    os << "1d probability map" << std::endl;
00054    for(map<short, double>::const_iterator it = fProb1d.begin(); it != fProb1d.end(); ++it)
00055    {
00056       os << "class " << it -> first << ": " << it -> second << std::endl;
00057    }
00058 }

void Lit::Result::Print  )  const
 

Definition at line 37 of file Result.cxx.

00038 {
00039    Print(std::cout);
00040 }


Friends And Related Function Documentation

friend class LikeModule [friend]
 

Definition at line 32 of file Result.h.


Member Data Documentation

Event Lit::Result::fEvent [private]
 

Definition at line 41 of file Result.h.

Referenced by Lit::LikeModule::Find(), and Print().

List Lit::Result::fList [private]
 

Definition at line 40 of file Result.h.

Referenced by Clear(), Lit::LikeModule::Find(), and Print().

std::map<short, double> Lit::Result::fProb1d [private]
 

Definition at line 43 of file Result.h.

Referenced by Clear(), and Print().

std::map<short, double> Lit::Result::fProbNN [private]
 

Definition at line 44 of file Result.h.

Referenced by Clear(), Lit::LikeModule::Find(), and Print().


The documentation for this class was generated from the following files:
Generated on Mon Feb 15 11:10:37 2010 for loon by  doxygen 1.3.9.1