WARPXM v1.10.0
Loading...
Searching...
No Matches
wxm::p_norm_diff_analytic Class Reference

Computes |a-b|^p, for finite p @params Vars. More...

#include <p_diff_analytic.h>

Inheritance diagram for wxm::p_norm_diff_analytic:
wxm::integrate_app wxm::app_base

Detailed Description

Computes |a-b|^p, for finite p @params Vars.

Parameters
StageA
StageB
Power

Public Member Functions

void setup (const WxCryptSet &wxc) override
 
real integrate (const std::vector< std::vector< real > > &in, const integrateVariables *pSV) const override
 Evaluates the integral function, returning a scalar value.
 
const std::vector< int > & getInputVariableIndexes (int flag=0) const override
 
virtual void setup (const WxCryptSet &wxc)=0
 
virtual real integrate (const std::vector< std::vector< real > > &in, const integrateVariables *pSV) const =0
 Evaluates the integral function, returning a scalar value.
 
- Public Member Functions inherited from wxm::app_base
virtual const std::vector< int > & getInputVariableIndexes (int flag=0) const
 
virtual const std::vector< int > & getOutputVariableIndexes (int flag=0) const
 

Protected Attributes

std::vector< int > in_vars_
 
real power_
 
real ipower_
 
std::unique_ptr< WmApplicationanalytic_app_
 

Additional Inherited Members

- Public Attributes inherited from wxm::integrate_app
std::vector< int > stages
 what stages this app expects as inputs, or empty to give the default stages (default is often the current stage)
 
- Static Public Attributes inherited from wxm::app_base
static std::vector< int > empty
 
- Protected Member Functions inherited from wxm::app_base
virtual ~app_base ()=default
 

Member Function Documentation

◆ getInputVariableIndexes()

const std::vector< int > & wxm::p_norm_diff_analytic::getInputVariableIndexes ( int  flag = 0) const
inlineoverridevirtual

Reimplemented from wxm::app_base.

◆ integrate()

real wxm::p_norm_diff_analytic::integrate ( const std::vector< std::vector< real > > &  in,
const integrateVariables pSV 
) const
overridevirtual

Evaluates the integral function, returning a scalar value.

Implements wxm::integrate_app.

◆ setup()

void wxm::p_norm_diff_analytic::setup ( const WxCryptSet wxc)
overridevirtual

Implements wxm::integrate_app.

Member Data Documentation

◆ analytic_app_

std::unique_ptr<WmApplication> wxm::p_norm_diff_analytic::analytic_app_
protected

◆ in_vars_

std::vector<int> wxm::p_norm_diff_analytic::in_vars_
protected

◆ ipower_

real wxm::p_norm_diff_analytic::ipower_
protected

◆ power_

real wxm::p_norm_diff_analytic::power_
protected

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