highprecisionpso::Log2DoubleOperation Class Reference

This operation calculates logarithm with base two of the supplied value. More...

#include <general_objects.h>

Inheritance diagram for highprecisionpso::Log2DoubleOperation:

Public Member Functions

std::string GetName ()
 Returns a string representation of this object. More...
 
mpf_t * Operate (mpf_t *value)
 Calculates the logarithm with base two of the supplied value. More...
 
- Public Member Functions inherited from highprecisionpso::Operation
virtual ~Operation ()
 The destructor. More...
 

Detailed Description

This operation calculates logarithm with base two of the supplied value.

Warning
Results of operation may have very bad precision.

Member Function Documentation

std::string highprecisionpso::Log2DoubleOperation::GetName ( )
virtual

Returns a string representation of this object.

Returns
The name of the object.

Implements highprecisionpso::Operation.

mpf_t* highprecisionpso::Log2DoubleOperation::Operate ( mpf_t *  value)
virtual

Calculates the logarithm with base two of the supplied value.

Warning
The calculation uses double calculations. Therefore the result may have a very bad precision. For exact results pleas use the Log2Operation and not Log2DoubleOperation!
Parameters
valueThe value which should be operated on.
Returns
The logarithm with base two of the supplied value.

Implements highprecisionpso::Operation.


The documentation for this class was generated from the following file: