17#include "NumericalApproximation.h"
18#include "SpecialPixel.h"
19#include "IException.h"
32 class SplineFill :
public Module {
36 SplineFill() : Module(
"SplineFill"),
_filled(0) { }
38 SplineFill(
const Module &c) :
39 Module(
"SplineFill", c),
_filled(0) {
45 Module(
"SplineFill"),
_filled(0) {
50 Module(
"SplineFill", h),
_filled(0) {
64 inline int Filled()
const {
return (
_filled); }
69 QString formHistory() {
71 return (QString(
"SplineFill(Cubic,Filled[" + cfilled +
"])"));
76 for (
int i = 0 ; i < v.dim() ; i++) {
77 if (!IsSpecial(v[i])) {
78 spline.AddData(i, v[i]);
85 for (
int j = 0 ; j < v.dim() ; j++) {
86 if (IsSpecial(v[j])) {
HiVector _data
Data vector.
HiHistory _history
Hierarchial component history.
const HiVector & ref() const
Return data via a const reference.
NumericalApproximation provides various numerical analysis methods of interpolation,...
@ CubicNatural
Cubic Spline interpolation with natural boundary conditions.
@ NearestEndpoint
Evaluate() returns the y-value of the nearest endpoint if a is outside of the domain.
int _filled
Number values replaced.
void Process(const HiVector &v)
Default processing behavior makes a reference copy of data array.
virtual ~SplineFill()
Destructor.
This is free and unencumbered software released into the public domain.
QString toString(const LinearAlgebra::Vector &vector, int precision)
A global function to format LinearAlgebra::Vector as a QString with the given precision.
TNT::Array1D< double > HiVector
1-D Buffer