CosmoBolognaLib
Free Software C++/Python libraries for cosmological calculations
cbl::measure Namespace Reference

The namespace of the functions and classes used to manage any kind of measure More...

Namespaces

 angularpk
 The namespace of the angular power spectrum
 
 numbercounts
 The namespace of the number counts
 
 stackprofile
 The namespace of the stacked density profile of clusters
 
 threept
 The namespace of the three-point correlation function
 
 twopt
 The namespace of the two-point correlation function
 

Classes

class  Measure
 The class Measure. More...
 

Enumerations

enum class  ErrorType {
  _Poisson_ , _Jackknife_ , _Bootstrap_ , _JackknifeTest_ ,
  _BootstrapTest_ , _JackknifeObjects_ , _BootstrapObjects_ , _None_
}
 the two-point correlation function error type More...
 

Functions

std::vector< std::string > ErrorTypeNames ()
 return a vector containing the ErrorType names More...
 
ErrorType ErrorTypeCast (const int errorTypeIndex)
 cast an enum of type ErrorType from its index More...
 
ErrorType ErrorTypeCast (const std::string errorTypeName)
 cast an enum of type ErrorType from its name More...
 
std::vector< ErrorTypeErrorTypeCast (const std::vector< int > errorTypeIndeces)
 cast an enum of type ErrorType from indeces More...
 
std::vector< ErrorTypeErrorTypeCast (const std::vector< std::string > errorTypeNames)
 cast an enum of type ErrorType from thier names More...
 

Detailed Description

The namespace of the functions and classes used to manage any kind of measure

The measure namespace contains all the functions and classes used for any kind of cosmological measure

Enumeration Type Documentation

◆ ErrorType

the two-point correlation function error type

Enumerator
_Poisson_ 

Poissonian error.

_Jackknife_ 

Jackknife resampling.

_Bootstrap_ 

Bootstrap resampling.

_JackknifeTest_ 

Jackknife resampling, test.

_BootstrapTest_ 

Bootstrap resampling, test.

_JackknifeObjects_ 

Jackknife resampling, by objects.

_BootstrapObjects_ 

Bootstrap resampling, by objects.

_None_ 

No error computed.

Definition at line 59 of file Measure.h.

Function Documentation

◆ ErrorTypeCast() [1/4]

ErrorType cbl::measure::ErrorTypeCast ( const int  errorTypeIndex)
inline

cast an enum of type ErrorType from its index

Parameters
errorTypeIndexthe errorType index
Returns
object of class ErrorType

Definition at line 102 of file Measure.h.

◆ ErrorTypeCast() [2/4]

ErrorType cbl::measure::ErrorTypeCast ( const std::string  errorTypeName)
inline

cast an enum of type ErrorType from its name

Parameters
errorTypeNamethe errorType name
Returns
object of class ErrorType

Definition at line 111 of file Measure.h.

◆ ErrorTypeCast() [3/4]

std::vector<ErrorType> cbl::measure::ErrorTypeCast ( const std::vector< int >  errorTypeIndeces)
inline

cast an enum of type ErrorType from indeces

Parameters
errorTypeIndecesthe errorType indeces
Returns
vector of objects of class ErrorType

Definition at line 120 of file Measure.h.

◆ ErrorTypeCast() [4/4]

std::vector<ErrorType> cbl::measure::ErrorTypeCast ( const std::vector< std::string >  errorTypeNames)
inline

cast an enum of type ErrorType from thier names

Parameters
errorTypeNamesthe errorType names
Returns
vector of objects of class ErrorType

Definition at line 129 of file Measure.h.

◆ ErrorTypeNames()

std::vector<std::string> cbl::measure::ErrorTypeNames ( )
inline

return a vector containing the ErrorType names

Returns
a vector containing the ErrorType names

Definition at line 92 of file Measure.h.