class Fourier extends BasisFunction with Error
The Fourier
class provides Fourier basis functions. Such basis functions
are useful are useful for fitting periodic data in Functional Data Analysis.
- See also
en.wikipedia.org/wiki/Fourier_series
- Alphabetic
- By Inheritance
- Fourier
- Error
- BasisFunction
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Fourier(w: Double = 2.0 * Pi, mMax: Int = 4)
- w
the fundamental frequency parameter
- mMax
the number of sin/cos pairs to be used in the basis function
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def abf(m: Int)(t: VectoD): MatrixD
Obtain the value of the m-th order basis functions (all) at time 't'.
Obtain the value of the m-th order basis functions (all) at time 't'. Or alternatively, obtain the basis function by calling bf(m)(j) only. Ex: val x = bf(m)(t) retrieves the value of all the basis functions at 't'. val f = bf(m) retrieves all the basis functions.
- m
the order of all the basis function
- t
the time parameter
- Definition Classes
- BasisFunction
- def abf_(m: Int)(t: Double): VectorD
Obtain the value of the m-th order basis functions (all) at time 't'.
Obtain the value of the m-th order basis functions (all) at time 't'. Or alternatively, obtain the basis function by calling bf(m)(j) only. Ex: val x = bf(m)(t) retrieves the value of all the basis functions at 't'. val f = bf(m) retrieves all the basis functions.
- m
the order of all the basis function
- t
the time parameter
- Definition Classes
- BasisFunction
- def apply(m: Int)(j: Int)(t: Double): Double
Obtain the value of the m-th order 'j'-th basis function at time 't'.
Obtain the value of the m-th order 'j'-th basis function at time 't'. Or alternatively, obtain the basis function by calling bf(m)(j) only. Ex: val x = bf(m)(j)(t) retrieves the value of the j-th basis function at 't'. val f = bf(m)(j) retrieves the j-th basis function.
- m
the order of the basis function
- j
indicates which basis function
- t
the time parameter
- Definition Classes
- BasisFunction
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def bf(m: Int = mMax)(j: Int)(t: Double): Double
Obtain the value of the m-th order 'j'-th basis function at time 't'.
Obtain the value of the m-th order 'j'-th basis function at time 't'. Or alternatively, obtain the basis function by calling bf(m)(j) only.
- m
the order of the basis function
- j
indicates which basis function
- t
the time parameter
- Definition Classes
- Fourier → BasisFunction
- def bf1(j: Int)(t: Double): Double
Obtain the value of the 1st order 'j'-th basis function at time 't'.
Obtain the value of the 1st order 'j'-th basis function at time 't'. Or alternatively, obtain the basis function by calling bf1(j) only. Ex: val x = bf1(j)(t) retrieves the value of the j-th basis function at 't'. val f = bf1(j) retrieves the j-th basis function.
- j
indicates which basis function
- t
the time parameter
- Definition Classes
- BasisFunction
- def bf2(j: Int)(t: Double): Double
Obtain the value of the 2nd order 'j'-th basis function at time 't'.
Obtain the value of the 2nd order 'j'-th basis function at time 't'. Or alternatively, obtain the basis function by calling bf2(j) only. Ex: val x = bf2(j)(t) retrieves the value of the j-th basis function at 't'. val f = bf2(j) retrieves the j-th basis function.
- j
indicates which basis function
- t
the time parameter
- Definition Classes
- BasisFunction
- def bf3(j: Int)(t: Double): Double
Obtain the value of the 3rd order 'j'-th basis function at time 't'.
Obtain the value of the 3rd order 'j'-th basis function at time 't'. Or alternatively, obtain the basis function by calling bf3(j) only. Ex: val x = bf3(j)(t) retrieves the value of the j-th basis function at 't'. val f = bf3(j) retrieves the j-th basis function.
- j
indicates which basis function
- t
the time parameter
- Definition Classes
- BasisFunction
- def bf4(j: Int)(t: Double): Double
Obtain the value of the 4th order 'j'-th basis function at time 't'.
Obtain the value of the 4th order 'j'-th basis function at time 't'. Or alternatively, obtain the basis function by calling bf4(j) only. Ex: val x = bf4(j)(t) retrieves the value of the j-th basis function at 't'. val f = bf4(j) retrieves the j-th basis function.
- j
indicates which basis function
- t
the time parameter
- Definition Classes
- BasisFunction
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def count(m: Int): Int
The number of basis functions for a specified order.
The number of basis functions for a specified order.
- m
the order of the basis function
- Definition Classes
- BasisFunction
- def dot_(m: Int)(i: Int, j: Int)(g: BasisFunction, a: Double = 0.0, b: Double = 1.0): Double
Compute the dot/inner product of 'this' basis function object and basis function 'g'.
Compute the dot/inner product of 'this' basis function object and basis function 'g'.
- m
the order of the basis function
- i
indicates which basis function of 'this'
- j
indicates which basis function of 'g'
- g
the other function
- a
the start of the interval
- b
the end of the interval
- Definition Classes
- BasisFunction
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def flaw(method: String, message: String): Unit
- Definition Classes
- Error
- def getCache(m: Int, t: VectoD): Array[MatrixD]
Retrieves the cached design matrices
Retrieves the cached design matrices
- Definition Classes
- BasisFunction
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getOrder: Int
Retrieves the order of the this Fourier basis function
Retrieves the order of the this Fourier basis function
- Definition Classes
- Fourier → BasisFunction
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val needCompute: Boolean
- Attributes
- protected
- Definition Classes
- BasisFunction
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def range(m: Int = mMax): Range
The range for the Fourier basis functions
The range for the Fourier basis functions
- m
the order of the spline
- Definition Classes
- Fourier → BasisFunction
- def recomputeCache: Unit
Recompute cached matrices
Recompute cached matrices
- Definition Classes
- BasisFunction
- def size(m: Int = mMax): Int
The number of usable Fourier basis functions for a specified order, including one constant term and 'm' sin/cos terms
The number of usable Fourier basis functions for a specified order, including one constant term and 'm' sin/cos terms
- m
the order of the spline
- Definition Classes
- Fourier → BasisFunction
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
String representation of the Fourier Basis Functions
String representation of the Fourier Basis Functions
- Definition Classes
- Fourier → AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- val Φ: MatrixD
- Attributes
- protected
- Definition Classes
- BasisFunction
- val Φt: MatrixD
- Attributes
- protected
- Definition Classes
- BasisFunction
- val ΦtΦ: MatrixD
- Attributes
- protected
- Definition Classes
- BasisFunction
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated