LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
home
lsstsw
stack
Linux64
meas_algorithms
11.0-2-gb8b8ce7
include
lsst
meas
algorithms
shapelet
Legendre2D.h
Go to the documentation of this file.
1
#ifndef MeasAlgoShapeletLegendre2D_H
2
#define MeasAlgoShapeletLegendre2D_H
3
4
#include <iostream>
5
#include "
lsst/meas/algorithms/shapelet/Function2D.h
"
6
7
namespace
lsst {
8
namespace
meas {
9
namespace
algorithms {
10
namespace
shapelet {
11
12
class
Legendre2D
:
public
Function2D
13
{
14
15
public
:
16
17
Legendre2D
() {}
18
19
Legendre2D
(
double
xMin,
double
xMax,
double
yMin,
double
yMax) :
20
Function2D
(),
_bounds
(xMin,xMax,yMin,yMax) {}
21
22
Legendre2D
(
const
Bounds
&
b
) :
Function2D
(),
_bounds
(b) {}
23
24
Legendre2D
(
const
Legendre2D
& rhs) :
25
Function2D
(rhs),
_bounds
(rhs.
_bounds
) {}
26
27
Legendre2D
(
const
Bounds
&
b
,
const
DMatrix
& a) :
28
Function2D
(a.
TMV_colsize
()-1,a.
TMV_rowsize
()-1,a),
_bounds
(b) {}
29
30
Legendre2D
(
int
xo,
int
yo,
const
Bounds
&
b
) :
31
Function2D
(xo,yo),
_bounds
(b) {}
32
33
Legendre2D
(std::istream& fin);
34
35
virtual
~Legendre2D
() {}
36
37
virtual
void
write
(std::ostream& fout)
const
;
38
39
virtual
std::auto_ptr<Function2D>
dFdX
()
const
;
40
41
virtual
std::auto_ptr<Function2D>
dFdY
()
const
;
42
43
virtual
std::auto_ptr<Function2D>
copy
()
const
44
{
return
std::auto_ptr<Function2D>(
new
Legendre2D
(*
this
)); }
45
46
virtual
void
addLinear
(
double
a,
double
b
,
double
c);
47
48
virtual
void
linearPreTransform
(
49
double
a,
double
b
,
double
c,
double
d,
double
e,
double
f);
50
51
virtual
void
operator+=
(
const
Function2D
& rhs);
52
53
double
getXMin
()
const
{
return
_bounds
.
getXMin
();}
54
55
double
getXMax
()
const
{
return
_bounds
.
getXMax
();}
56
57
double
getYMin
()
const
{
return
_bounds
.
getYMin
();}
58
59
double
getYMax
()
const
{
return
_bounds
.
getYMax
();}
60
61
const
Bounds
&
getBounds
()
const
{
return
_bounds
;}
62
63
virtual
void
setFunction
(
64
int
xorder,
int
yorder,
const
DVector
& fvect);
65
66
private
:
67
68
Bounds
_bounds
;
69
using
Function2D::_xOrder
;
70
using
Function2D::_yOrder
;
71
using
Function2D::_coeffs
;
72
73
DVector
definePXY
(
74
int
order,
double
xy,
double
min,
double
max)
const
;
75
76
virtual
DVector
definePX
(
int
order,
double
x
)
const
;
77
78
virtual
DVector
definePY
(
int
order,
double
y
)
const
;
79
80
};
81
82
}}}}
83
84
#endif
y
int y
Definition:
GaussianCentroid.cc:36
lsst::meas::algorithms::shapelet::Legendre2D::Legendre2D
Legendre2D(double xMin, double xMax, double yMin, double yMax)
Definition:
Legendre2D.h:19
TMV_rowsize
#define TMV_rowsize()
Definition:
MyMatrix.h:174
lsst::meas::algorithms::shapelet::Legendre2D::Legendre2D
Legendre2D(int xo, int yo, const Bounds &b)
Definition:
Legendre2D.h:30
lsst::meas::algorithms::shapelet::Legendre2D::write
virtual void write(std::ostream &fout) const
Definition:
Legendre2D.cc:85
lsst::meas::algorithms::shapelet::Legendre2D::getXMin
double getXMin() const
Definition:
Legendre2D.h:53
lsst::meas::algorithms::shapelet::Function2D::_coeffs
std::auto_ptr< DMatrix > _coeffs
Definition:
Function2D.h:146
lsst::meas::algorithms::shapelet::Legendre2D::_bounds
Bounds _bounds
Definition:
Legendre2D.h:68
lsst::meas::algorithms::shapelet::Bounds
Definition:
Bounds.h:84
TMV_colsize
#define TMV_colsize()
Definition:
MyMatrix.h:175
lsst::meas::algorithms::shapelet::Bounds::getYMin
double getYMin() const
Definition:
Bounds.h:116
lsst::meas::algorithms::shapelet::Legendre2D::dFdY
virtual std::auto_ptr< Function2D > dFdY() const
Definition:
Legendre2D.cc:189
lsst::meas::algorithms::shapelet::Bounds::getYMax
double getYMax() const
Definition:
Bounds.h:118
lsst::meas::algorithms::shapelet::Legendre2D::definePY
virtual DVector definePY(int order, double y) const
Definition:
Legendre2D.cc:248
lsst::meas::algorithms::shapelet::Legendre2D::copy
virtual std::auto_ptr< Function2D > copy() const
Definition:
Legendre2D.h:43
Function2D.h
lsst::meas::algorithms::shapelet::Function2D
Definition:
Function2D.h:31
lsst::meas::algorithms::shapelet::Bounds::getXMin
double getXMin() const
Definition:
Bounds.h:112
lsst::meas::algorithms::shapelet::Function2D::_yOrder
int _yOrder
Definition:
Function2D.h:145
lsst::meas::algorithms::shapelet::Legendre2D::Legendre2D
Legendre2D(const Legendre2D &rhs)
Definition:
Legendre2D.h:24
x
double x
Definition:
ChebyshevBoundedField.cc:305
lsst::meas::algorithms::shapelet::Legendre2D::definePXY
DVector definePXY(int order, double xy, double min, double max) const
Definition:
Legendre2D.cc:227
lsst::meas::algorithms::shapelet::Legendre2D::Legendre2D
Legendre2D(const Bounds &b)
Definition:
Legendre2D.h:22
lsst::meas::algorithms::shapelet::Legendre2D::addLinear
virtual void addLinear(double a, double b, double c)
Definition:
Legendre2D.cc:107
lsst::meas::algorithms::shapelet::Legendre2D
Definition:
Legendre2D.h:12
lsst::meas::algorithms::shapelet::Legendre2D::linearPreTransform
virtual void linearPreTransform(double a, double b, double c, double d, double e, double f)
Definition:
Legendre2D.cc:119
lsst::meas::algorithms::shapelet::DVector
Eigen::VectorXd DVector
Definition:
MyMatrix.h:129
lsst::meas::algorithms::shapelet::Legendre2D::definePX
virtual DVector definePX(int order, double x) const
Definition:
Legendre2D.cc:238
lsst::meas::algorithms::shapelet::DMatrix
Eigen::MatrixXd DMatrix
Definition:
MyMatrix.h:132
lsst::meas::algorithms::shapelet::Legendre2D::getYMax
double getYMax() const
Definition:
Legendre2D.h:59
lsst::meas::algorithms::shapelet::Bounds::getXMax
double getXMax() const
Definition:
Bounds.h:114
b
afw::table::Key< double > b
Definition:
DoubleGaussianPsf.cc:49
lsst::meas::algorithms::shapelet::Legendre2D::getXMax
double getXMax() const
Definition:
Legendre2D.h:55
lsst::meas::algorithms::shapelet::Legendre2D::Legendre2D
Legendre2D()
Definition:
Legendre2D.h:17
lsst::meas::algorithms::shapelet::Legendre2D::~Legendre2D
virtual ~Legendre2D()
Definition:
Legendre2D.h:35
lsst::meas::algorithms::shapelet::Legendre2D::getBounds
const Bounds & getBounds() const
Definition:
Legendre2D.h:61
lsst::meas::algorithms::shapelet::Legendre2D::dFdX
virtual std::auto_ptr< Function2D > dFdX() const
Definition:
Legendre2D.cc:149
lsst::meas::algorithms::shapelet::Legendre2D::operator+=
virtual void operator+=(const Function2D &rhs)
Definition:
Legendre2D.cc:126
lsst::meas::algorithms::shapelet::Legendre2D::getYMin
double getYMin() const
Definition:
Legendre2D.h:57
lsst::meas::algorithms::shapelet::Legendre2D::setFunction
virtual void setFunction(int xorder, int yorder, const DVector &fvect)
Definition:
Legendre2D.cc:51
lsst::meas::algorithms::shapelet::Legendre2D::Legendre2D
Legendre2D(const Bounds &b, const DMatrix &a)
Definition:
Legendre2D.h:27
lsst::meas::algorithms::shapelet::Function2D::_xOrder
int _xOrder
Definition:
Function2D.h:145
Generated on Thu Sep 24 2015 02:29:20 for LSSTApplications by
1.8.5