casacore
Loading...
Searching...
No Matches
FunctionalProxy.h
Go to the documentation of this file.
1// # FunctionFactory.h: a class for creating Function objects from Records
2// # Copyright (C) 2002
3// # Associated Universities, Inc. Washington DC, USA.
4// #
5// # This library is free software; you can redistribute it and/or modify it
6// # under the terms of the GNU Library General Public License as published by
7// # the Free Software Foundation; either version 2 of the License, or (at your
8// # option) any later version.
9// #
10// # This library is distributed in the hope that it will be useful, but WITHOUT
11// # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12// # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13// # License for more details.
14// #
15// # You should have received a copy of the GNU Library General Public License
16// # along with this library; if not, write to the Free Software Foundation,
17// # Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18// #
19// # Correspondence concerning AIPS++ should be addressed as follows:
20// # Internet email: casa-feedback@nrao.edu.
21// # Postal address: AIPS++ Project Office
22// # National Radio Astronomy Observatory
23// # 520 Edgemont Road
24// # Charlottesville, VA 22903-2475 USA
25
26#ifndef SCIMATH_FUNCTIONALSPROXY_H
27#define SCIMATH_FUNCTIONALSPROXY_H
28
29#include <casacore/casa/aips.h>
30#include <casacore/casa/Arrays/Vector.h>
31#include <casacore/casa/BasicSL/String.h>
32#include <casacore/casa/Containers/Record.h>
33#include <casacore/casa/BasicSL/Complex.h>
34#include <casacore/scimath/Functionals/FunctionHolder.h>
35
36namespace casacore { // # NAMESPACE CASACORE - BEGIN
37
39 public:
41 // type 0==Double, other == DComplex
42 FunctionalProxy(const Record& rec, Int type = 0);
46 void add(const FunctionalProxy& func);
49 void addc(const FunctionalProxy& func);
51 Int npar() const;
52 uInt ndim() const;
53 void setparameters(const Vector<Double>& val);
55 void setmasks(const Vector<Bool>& val);
56
57 void setmask(Int i, Bool val);
58 void setpar(Int i, Double val);
59 void setparc(Int i, DComplex val);
60
64
65 private:
68 void rec2fhdc(const Record& rec);
69 void rec2fhd(const Record& rec);
73};
74} // namespace casacore
75#endif
void setparc(Int i, DComplex val)
Vector< DComplex > fdfc(const Vector< Double > &val)
FunctionHolder< DComplex > fhdc_
void rec2fhdc(const Record &rec)
Vector< Double > f(const Vector< Double > &val)
void setmasks(const Vector< Bool > &val)
void rec2fhd(const Record &rec)
Vector< Bool > masks() const
void setmask(Int i, Bool val)
void setparametersc(const Vector< DComplex > &val)
void setpar(Int i, Double val)
FunctionalProxy(const Record &rec, Int type=0)
type 0==Double, other == DComplex
void setparameters(const Vector< Double > &val)
Vector< DComplex > parametersc() const
void add(const FunctionalProxy &func)
Vector< DComplex > fc(const Vector< DComplex > &val)
Vector< Double > parameters() const
Vector< Double > fdf(const Vector< Double > &val)
void addc(const FunctionalProxy &func)
FunctionHolder< Double > fhd_
For temporary backward namespace compatibility, use casa as alias for casacore.
Definition mainpage.dox:28
unsigned int uInt
Definition aipstype.h:49
int Int
Definition aipstype.h:48
bool Bool
Define the standard types used by Casacore.
Definition aipstype.h:40
double Double
Definition aipstype.h:53