Isis 3.0 Programmer Reference
Back
|
Home
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Parabola.cpp
Go to the documentation of this file.
1
23
#include <iostream>
24
#include <sstream>
25
#include "
FileName.h
"
26
#include "
Constants.h
"
27
#include "
IException.h
"
28
#include "
Parabola.h
"
29
30
namespace
Isis {
31
39
void
Parabola::Expand
(
const
std::vector<double> &vars) {
40
41
if
((
int
) vars.size() !=
Variables
()) {
42
std::ostringstream msg;
43
msg <<
"Number of variables given ("
<< vars.size()
44
<<
") does not match expected ("
<<
Variables
() <<
")!"
45
<< std::ends;
46
// std::cout << msg.str << std::endl;
47
// throw Isis::iException::Message("Isis::iException::Programmer",msg.str,
48
// _FILEINFO_);
49
}
50
p_terms
.clear();
51
p_terms
.push_back(1.0);
52
p_terms
.push_back(vars[0]);
53
p_terms
.push_back(vars[0] * vars[0]);
54
return
;
55
}
56
}
// end namespace isis
57
Isis::BasisFunction::p_terms
std::vector< double > p_terms
A vector of the terms in the equation.
Definition:
BasisFunction.h:143
Constants.h
FileName.h
Isis::BasisFunction::Variables
int Variables() const
Returns the number of variables in the equation.
Definition:
BasisFunction.h:88
Parabola.h
IException.h
Isis::Parabola::Expand
void Expand(const std::vector< double > &vars)
This is the the overriding virtual function that provides the expansion into the parabolic equation...
Definition:
Parabola.cpp:39
U.S. Department of the Interior
|
U.S. Geological Survey
ISIS
|
Privacy & Disclaimers
|
Astrogeology Research Program
To contact us, please post comments and questions on the
ISIS Support Center
File Modified: 07/12/2023 23:25:16