1
/* ----------------------------------------------------------------------------
2
* This file was automatically generated by SWIG (http://www.swig.org).
5
* Do not make changes to this file unless you know what you are doing--modify
6
* the SWIG interface file instead.
7
* ----------------------------------------------------------------------------- */
12
using System.Runtime.InteropServices;
14
public class KrugerCubic : IDisposable {
15
private HandleRef swigCPtr;
16
protected bool swigCMemOwn;
18
internal KrugerCubic(IntPtr cPtr, bool cMemoryOwn) {
19
swigCMemOwn = cMemoryOwn;
20
swigCPtr = new HandleRef(this, cPtr);
23
internal static HandleRef getCPtr(KrugerCubic obj) {
24
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
31
public virtual void Dispose() {
33
if (swigCPtr.Handle != IntPtr.Zero) {
36
NQuantLibcPINVOKE.delete_KrugerCubic(swigCPtr);
38
swigCPtr = new HandleRef(null, IntPtr.Zero);
40
GC.SuppressFinalize(this);
44
public KrugerCubic(QlArray x, QlArray y) : this(NQuantLibcPINVOKE.new_KrugerCubic(QlArray.getCPtr(x), QlArray.getCPtr(y)), true) {
45
if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
48
public double call(double x, bool allowExtrapolation) {
49
double ret = NQuantLibcPINVOKE.KrugerCubic_call__SWIG_0(swigCPtr, x, allowExtrapolation);
50
if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
54
public double call(double x) {
55
double ret = NQuantLibcPINVOKE.KrugerCubic_call__SWIG_1(swigCPtr, x);
56
if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
60
public double derivative(double x, bool extrapolate) {
61
double ret = NQuantLibcPINVOKE.KrugerCubic_derivative__SWIG_0(swigCPtr, x, extrapolate);
62
if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
66
public double derivative(double x) {
67
double ret = NQuantLibcPINVOKE.KrugerCubic_derivative__SWIG_1(swigCPtr, x);
68
if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
72
public double secondDerivative(double x, bool extrapolate) {
73
double ret = NQuantLibcPINVOKE.KrugerCubic_secondDerivative__SWIG_0(swigCPtr, x, extrapolate);
74
if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
78
public double secondDerivative(double x) {
79
double ret = NQuantLibcPINVOKE.KrugerCubic_secondDerivative__SWIG_1(swigCPtr, x);
80
if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
84
public double primitive(double x, bool extrapolate) {
85
double ret = NQuantLibcPINVOKE.KrugerCubic_primitive__SWIG_0(swigCPtr, x, extrapolate);
86
if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
90
public double primitive(double x) {
91
double ret = NQuantLibcPINVOKE.KrugerCubic_primitive__SWIG_1(swigCPtr, x);
92
if (NQuantLibcPINVOKE.SWIGPendingException.Pending) throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();