Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

LogParameterFilter.cpp

Go to the documentation of this file.
00001 // LogParameterFilter.cpp: implementation of the CLogParameterFilter class.
00002 //
00004 
00005 #include "LogParameterFilter.h"
00006 
00008 // Construction/Destruction
00010 
00011 CLogParameterFilter::CLogParameterFilter()
00012 {
00013 
00014 }
00015 
00016 CLogParameterFilter::~CLogParameterFilter()
00017 {
00018 
00019 }
00020 
00021 double CLogParameterFilter::Operator(double operand)
00022 {
00023         if(operand <= 0.0)
00024         {
00025                 throw std::runtime_error("ERROR: Log of negative number.");
00026         }
00027         else
00028         {
00029                 return log(operand);
00030         }
00031 }
00032 
00033 double CLogParameterFilter::OperatorInverse(double operand)
00034 {
00035         return exp(operand);
00036 }

Generated on Mon Nov 3 09:37:57 2003 by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002