STIR  6.2.0
Public Member Functions | Public Attributes | List of all members
stir::BSpline::BSplines1DRegularGrid< out_elemT, in_elemT, constantsT > Class Template Reference

Temporary class for 1D B-splines. More...

#include "stir/numerics/BSplines1DRegularGrid.h"

Inheritance diagram for stir::BSpline::BSplines1DRegularGrid< out_elemT, in_elemT, constantsT >:
Inheritance graph
[legend]

Public Member Functions

 BSplines1DRegularGrid ()
 default constructor: no input
 
 BSplines1DRegularGrid (const std::vector< in_elemT > &input_vector)
 constructor given a vector as an input, estimates the Coefficients
 
template<class IterT >
 BSplines1DRegularGrid (const IterT input_begin_iterator, const IterT input_end_iterator)
 constructor given a begin_ and end_ iterator as input, estimates the Coefficients
 
template<class IterT >
 BSplines1DRegularGrid (const IterT input_begin_iterator, const IterT input_end_iterator, const BSplineType this_type)
 constructor given a begin_ and end_ iterator as input, estimates the Coefficients
 
 BSplines1DRegularGrid (const std::vector< in_elemT > &input_vector, const BSplineType this_type)
 
 ~BSplines1DRegularGrid ()
 destructor
 
out_elemT BSplines (const pos_type relative_position) const
 
out_elemT BSplines_1st_der (const pos_type relative_position) const
 
const out_elemT operator() (const pos_type relative_position) const
 same as BSplines()
 
const std::vector< out_elemT > BSplines_output_sequence (RandIterOut output_relative_position_begin_iterator, RandIterOut output_relative_position_end_iterator)
 
const std::vector< out_elemT > BSplines_output_sequence (std::vector< pos_type > output_relative_position)
 

Public Attributes

std::vector< out_elemT > BSplines_coef_vector
 
BSplineType spline_type
 

Detailed Description

template<typename out_elemT, typename in_elemT = out_elemT, typename constantsT = in_elemT>
class stir::BSpline::BSplines1DRegularGrid< out_elemT, in_elemT, constantsT >

Temporary class for 1D B-splines.

This class works with std::vector objects, while BSplinesRegularGrid works with stir::Array objects.

Todo:
remove overlap with the n-dimensional version BSplinesRegularGrid

Constructor & Destructor Documentation

◆ BSplines1DRegularGrid()

template<typename out_elemT , typename in_elemT, typename constantsT >
stir::BSpline::BSplines1DRegularGrid< out_elemT, in_elemT, constantsT >::BSplines1DRegularGrid ( const std::vector< in_elemT > &  input_vector,
const BSplineType  this_type 
)
inline

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