Loading...
Searching...
No Matches
polynomial.h File Reference

Definition of a cubic spline. More...

#include <algorithm>
#include <functional>
#include <iostream>
#include <stdexcept>
#include "MathDefs.h"
#include "curve_abc.h"
Include dependency graph for polynomial.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ndcurves::polynomial< Time, Numeric, Safe, Point, T_Point >
 Represents a polynomial of an arbitrary order defined on the interval \([t_{min}, t_{max}]\). It follows the equation :
\( x(t) = a + b(t - t_{min}) + ... + d(t - t_{min})^N \)
where N is the order and \( t \in [t_{min}, t_{max}] \). More...
 

Namespaces

namespace  ndcurves
 

Functions

template<typename T , typename N , bool S, typename P , typename TP >
polynomial< T, N, S, P, TPndcurves::operator+ (const polynomial< T, N, S, P, TP > &p1, const polynomial< T, N, S, P, TP > &p2)
 
template<typename T , typename N , bool S, typename P , typename TP >
polynomial< T, N, S, P, TPndcurves::operator+ (const polynomial< T, N, S, P, TP > &p1, const typename polynomial< T, N, S, P, TP >::point_t &point)
 
template<typename T , typename N , bool S, typename P , typename TP >
polynomial< T, N, S, P, TPndcurves::operator+ (const typename polynomial< T, N, S, P, TP >::point_t &point, const polynomial< T, N, S, P, TP > &p1)
 
template<typename T , typename N , bool S, typename P , typename TP >
polynomial< T, N, S, P, TPndcurves::operator- (const polynomial< T, N, S, P, TP > &p1, const typename polynomial< T, N, S, P, TP >::point_t &point)
 
template<typename T , typename N , bool S, typename P , typename TP >
polynomial< T, N, S, P, TPndcurves::operator- (const typename polynomial< T, N, S, P, TP >::point_t &point, const polynomial< T, N, S, P, TP > &p1)
 
template<typename T , typename N , bool S, typename P , typename TP >
polynomial< T, N, S, P, TPndcurves::operator- (const polynomial< T, N, S, P, TP > &p1)
 
template<typename T , typename N , bool S, typename P , typename TP >
polynomial< T, N, S, P, TPndcurves::operator- (const polynomial< T, N, S, P, TP > &p1, const polynomial< T, N, S, P, TP > &p2)
 
template<typename T , typename N , bool S, typename P , typename TP >
polynomial< T, N, S, P, TPndcurves::operator/ (const polynomial< T, N, S, P, TP > &p1, const double k)
 
template<typename T , typename N , bool S, typename P , typename TP >
polynomial< T, N, S, P, TPndcurves::operator* (const polynomial< T, N, S, P, TP > &p1, const double k)
 
template<typename T , typename N , bool S, typename P , typename TP >
polynomial< T, N, S, P, TPndcurves::operator* (const double k, const polynomial< T, N, S, P, TP > &p1)
 

Detailed Description

Definition of a cubic spline.

Author
Steve T.
Version
0.1
Date
06/17/2013

This file contains definitions for the polynomial struct. It allows the creation and evaluation of natural smooth splines of arbitrary dimension and order