ALTA  alpha
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
alta::vertical_segment Class Reference

Detailed Description

This class implement a data representation of vertical segments in the sense of Pacanowski et al. [2012]. Each data point is in fact composed of a middle point \( x \) and an upper \( \overline{x} \) and lower bound \( \underline{x} \).

To retrieve the complete vertical segment data \( [x, \underline{x}, \overline{x}] \), a special function is provided. The functions inherited from data will only return the middle point.

It is possible to load regular ALTA file using a vertical segment data loader. It will automatically generate vertical segments. You can control the behavior of the vertical segments using the following option in the command line:

The data of the vertical segment can be restricted to subpart of the original data by specifying the bounding box of the input and output domain:

#include <vertical_segment.h>

Collaboration diagram for alta::vertical_segment:
Collaboration graph

Public Types


Public Member Functions

 vertical_segment (const parameters &params, size_t size, std::shared_ptr< double > data, ci_kind kind=ASYMMETRICAL_CONFIDENCE_INTERVAL)
 vertical_segment (const parameters &params, unsigned int size) ALTA_DEPRECATED
virtual vec get (int i) const
virtual vec value (const vec &) const
 Provide an evaluation of the data using interpolation. If the data object does not provide an interpolation mechanism, it should throw an exception. More...
virtual void set (int i, const vec &x)
 Put the sample inside the data at index I.
virtual void get (int i, vec &x, vec &yl, vec &yu) const
 Specific accessor to a vertical segment, this gives the complete vector, plus the ordinate segment.
virtual void get (int i, vec &yl, vec &yu) const
 Specific accessor to a vertical segment. Provides only the ordinate segment.
ci_kind confidence_interval_kind () const
 Return the type of CI data provided by this object.
size_t confidence_interval_columns () const
 Return the number of columns used to store confidence interval data.
size_t column_number () const
 Return the number of columns in each row.
Eigen::Map< Eigen::MatrixXd > matrix_view () const
 Return a matrix view of the data: all the Xi and Yi followed.
- Public Member Functions inherited from alta::data
 data (const parameters &p, int size)
 data (const parameters &p, int size, const vec &min, const vec &max)
 data (unsigned int dim_X, unsigned int dim_Y)
virtual void save (const std::string &filename) const
int size () const
virtual bool equals (const data &data, double epsilon=std::pow(1.0,-int(std::numeric_limits< double >::digits10-1)))
 Return true if this object is equal to DATA ±ε.
const parametersparametrization () const
void setParametrization (const parameters &p)
const vec & min () const
 Get the minimum value the input can take.
const vec & max () const
 Get the maximum value the input can take.

Static Public Member Functions

static size_t confidence_interval_columns (ci_kind kind, const parameters &params)
 Return the number of columns used to store confidence interval data for KIND.

Protected Member Functions

virtual vec vs (const vec &x) const
 From a correct input configuration 'x' with size dimX()+dimY(), generate a vertical ! segment satisfying this object's parameters.

Protected Attributes

std::shared_ptr< double > _data
const ci_kind _ci_kind
bool _is_absolute
double _dt
- Protected Attributes inherited from alta::data
parameters _parameters
int _size
vec _min
vec _max

Member Function Documentation

virtual vec alta::vertical_segment::value ( const vec &  in) const

The input vector must have the parametrization of the data, and match the total dimension: dimX + dimY.

Implements alta::data.

Reimplemented in BrdfGrid.

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