TTK
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
ttk::LDistance Class Reference

TTK lDistance processing package. More...

#include <LDistance.h>

Inheritance diagram for ttk::LDistance:
ttk::Debug ttk::BaseClass ttkLDistance

Public Member Functions

 LDistance ()
 
template<class dataType >
int execute (const dataType *const inputData1, const dataType *const inputData2, dataType *const outputData, const std::string &distanceType, const SimplexId vertexNumber)
 
template<class dataType , typename PowerFunc >
int computeLn (const dataType *const input1, const dataType *const input2, dataType *const output, const int n, const SimplexId vertexNumber, const PowerFunc &powerFunc)
 
template<class dataType >
int computeLinf (const dataType *const input1, const dataType *const input2, dataType *const output, const SimplexId vertexNumber)
 
double getResult ()
 
void setPrintRes (const bool data)
 
- Public Member Functions inherited from ttk::Debug
 Debug ()
 
 ~Debug () override
 
virtual int setDebugLevel (const int &debugLevel)
 
int setWrapper (const Wrapper *wrapper) override
 
int printMsg (const std::string &msg, const debug::Priority &priority=debug::Priority::INFO, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
 
int printMsg (const std::vector< std::string > &msgs, const debug::Priority &priority=debug::Priority::INFO, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
 
int printErr (const std::string &msg, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cerr) const
 
int printWrn (const std::string &msg, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cerr) const
 
int printMsg (const std::string &msg, const double &progress, const double &time, const int &threads, const double &memory, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const
 
int printMsg (const std::string &msg, const double &progress, const double &time, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const
 
int printMsg (const std::string &msg, const double &progress, const double &time, const int &threads, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const
 
int printMsg (const std::string &msg, const double &progress, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::PERFORMANCE, std::ostream &stream=std::cout) const
 
int printMsg (const std::string &msg, const double &progress, const debug::Priority &priority, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
 
int printMsg (const std::vector< std::vector< std::string > > &rows, const debug::Priority &priority=debug::Priority::INFO, const bool hasHeader=true, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
 
int printMsg (const debug::Separator &separator, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::INFO, std::ostream &stream=std::cout) const
 
int printMsg (const debug::Separator &separator, const debug::Priority &priority, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
 
int printMsg (const std::string &msg, const debug::Separator &separator, const debug::LineMode &lineMode=debug::LineMode::NEW, const debug::Priority &priority=debug::Priority::INFO, std::ostream &stream=std::cout) const
 
void setDebugMsgPrefix (const std::string &prefix)
 
- Public Member Functions inherited from ttk::BaseClass
 BaseClass ()
 
virtual ~BaseClass ()=default
 
int getThreadNumber () const
 
virtual int setThreadNumber (const int threadNumber)
 

Static Public Member Functions

template<typename type >
static type abs_diff (const type var1, const type var2)
 

Protected Attributes

double result {}
 
bool printRes {true}
 
- Protected Attributes inherited from ttk::Debug
int debugLevel_
 
std::string debugMsgPrefix_
 
std::string debugMsgNamePrefix_
 
- Protected Attributes inherited from ttk::BaseClass
bool lastObject_
 
int threadNumber_
 
Wrapperwrapper_
 

Additional Inherited Members

- Protected Member Functions inherited from ttk::Debug
int printMsgInternal (const std::string &msg, const std::string &right, const std::string &filler, const debug::Priority &priority=debug::Priority::INFO, const debug::LineMode &lineMode=debug::LineMode::NEW, std::ostream &stream=std::cout) const
 
int printMsgInternal (const std::string &msg, const debug::Priority &priority, const debug::LineMode &lineMode, std::ostream &stream=std::cout) const
 
int welcomeMsg (std::ostream &stream)
 
- Static Protected Attributes inherited from ttk::Debug
static COMMON_EXPORTS debug::LineMode lastLineMode = ttk::debug::LineMode::NEW
 

Detailed Description

TTK lDistance processing package.

Author
Maxime Soler soler.nosp@m..max.nosp@m.ime@t.nosp@m.otal.nosp@m..com
Date
26/02/2017

LDistance is a TTK processing package that takes a scalar field on the input and produces a scalar field on the output.

See also
ttkLDistance.cpp for a usage example.

Definition at line 26 of file LDistance.h.

Constructor & Destructor Documentation

◆ LDistance()

ttk::LDistance::LDistance ( )

Definition at line 3 of file LDistance.cpp.

Member Function Documentation

◆ abs_diff()

template<typename type >
static type ttk::LDistance::abs_diff ( const type  var1,
const type  var2 
)
inlinestatic

Definition at line 60 of file LDistance.h.

◆ computeLinf()

template<class dataType >
int ttk::LDistance::computeLinf ( const dataType *const  input1,
const dataType *const  input2,
dataType *const  output,
const SimplexId  vertexNumber 
)

Definition at line 146 of file LDistance.h.

◆ computeLn()

template<class dataType , typename PowerFunc >
int ttk::LDistance::computeLn ( const dataType *const  input1,
const dataType *const  input2,
dataType *const  output,
const int  n,
const SimplexId  vertexNumber,
const PowerFunc &  powerFunc 
)

Definition at line 108 of file LDistance.h.

◆ execute()

template<class dataType >
int ttk::LDistance::execute ( const dataType *const  inputData1,
const dataType *const  inputData2,
dataType *const  outputData,
const std::string &  distanceType,
const SimplexId  vertexNumber 
)

Definition at line 72 of file LDistance.h.

◆ getResult()

double ttk::LDistance::getResult ( )
inline

Definition at line 51 of file LDistance.h.

◆ setPrintRes()

void ttk::LDistance::setPrintRes ( const bool  data)
inline

Definition at line 55 of file LDistance.h.

Member Data Documentation

◆ printRes

bool ttk::LDistance::printRes {true}
protected

Definition at line 66 of file LDistance.h.

◆ result

double ttk::LDistance::result {}
protected

Definition at line 65 of file LDistance.h.


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