A breakpoint in a piecewise linear function. More...
#include <xpress.hpp>
|
template<typename Strm0 , typename Strm0IsStream = typename std::enable_if<xpress::is_stream<Strm0>::value>::type> |
static auto |
convert (Strm0 const &breakpoints) -> std::vector< std::vector< double > > |
|
Convert a collection of breakpoints into two double arrays.
|
|
static auto |
convert (xpress::SizedArray< double const > const &xval, xpress::SizedArray< double const > const &yval) -> std::vector< xpress::PwlBreakpoint > |
|
Convert arrays of coordinates into breakpoints.
|
|
A breakpoint in a piecewise linear function.
-
Since
-
44.00
PwlBreakpoint() [1/2]
xpress::PwlBreakpoint::PwlBreakpoint |
( |
|
) |
|
|
inline |
Create a breakpoint (0,0).
-
Since
-
44.00
PwlBreakpoint() [2/2]
xpress::PwlBreakpoint::PwlBreakpoint |
( |
double |
x, |
|
|
double |
y ) |
|
inline |
Create a breakpoint with the specified coordinates.
-
Parameters
-
x |
X coordinate for breakpoint. |
y |
Y coordinate for breakpoint. |
-
Since
-
44.00
compareTo()
auto xpress::PwlBreakpoint::compareTo |
( |
PwlBreakpoint const & |
other |
) |
const -> int |
|
inline |
convert() [1/2]
template<typename Strm0 , typename Strm0IsStream = typename std::enable_if<xpress::is_stream<Strm0>::value>::type>
static auto xpress::PwlBreakpoint::convert |
( |
Strm0 const & |
breakpoints |
) |
-> std::vector< std::vector< double > > |
|
inlinestatic |
Convert a collection of breakpoints into two double arrays.
-
Parameters
-
breakpoints |
Breakpoints to convert. |
-
Template Parameters
-
Strm0 |
Something that supports begin() and end() and contains values of type xpress::PwlBreakpoint . |
-
Returns
-
Two element array, in which the first element contains the x coordinates of the breakpoints and the second element contains the y coordinates of the breakpoints.
-
Since
-
44.00
convert() [2/2]
Convert arrays of coordinates into breakpoints.
-
Parameters
-
xval |
x coordinates of breakpoints. Must have the same length as yval . |
yval |
y coordinates of breakpoints. Must have the same length as xval . |
-
Returns
-
The breakpoints represented by
xval
and
yval
.
-
Since
-
44.00
equals()
auto xpress::PwlBreakpoint::equals |
( |
PwlBreakpoint const & |
other |
) |
const -> bool |
|
inline |
getHashCode()
auto xpress::PwlBreakpoint::getHashCode |
( |
|
) |
const -> std::size_t |
|
inline |
getX()
auto xpress::PwlBreakpoint::getX |
( |
|
) |
const -> double |
|
inline |
X coordinate [get].
-
Since
-
44.00
getY()
auto xpress::PwlBreakpoint::getY |
( |
|
) |
const -> double |
|
inline |
Y coordinate [get].
-
Since
-
44.00
operator!=()
auto xpress::PwlBreakpoint::operator!= |
( |
PwlBreakpoint const & |
other |
) |
const -> bool |
|
inline |
operator==()
auto xpress::PwlBreakpoint::operator== |
( |
PwlBreakpoint const & |
other |
) |
const -> bool |
|
inline |
setX()
void xpress::PwlBreakpoint::setX |
( |
double |
newX |
) |
|
|
inline |
X coordinate [set].
-
Since
-
44.00
setY()
void xpress::PwlBreakpoint::setY |
( |
double |
newY |
) |
|
|
inline |
Y coordinate [set].
-
Since
-
44.00
The documentation for this class was generated from the following file:
© 2001-2024 Fair Isaac Corporation. All rights reserved. This documentation is the
property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not
convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except
solely for internal evaluation purposes to determine whether to purchase a license to the software
described in this documentation, or as otherwise set forth in a written software license agreement
between you and FICO (or a FICO affiliate). Use of this documentation and the software described in
it must conform strictly to the foregoing permitted uses, and no other use is permitted.