Skip to content

Bases ​

Index ​

Types ​

TransportMaps.HermiteBasis Type
julia
HermiteBasis

Probabilists' Hermite polynomial basis, defined by

source
TransportMaps.LinearizedHermiteBasis Type
julia
LinearizedHermiteBasis

Probabilists' Hermite polynomial basis with linear extrapolation outside bounds :

Fields

  • linearizationbounds::Vector{Float64}: lower and upper bounds for linearization.

  • normalization::Vector{Float64}: normalization factors for each degree.

Constructors

  • LinearizedHermiteBasis(; lower=-Inf, upper=Inf, normalization=Float64[]): Explicit constructor with specified bounds and normalization.

  • LinearizedHermiteBasis(max_degree::Int): Construct with default normalization for given maximum degree.

  • LinearizedHermiteBasis(samples::Vector{<:Real}, max_degree::Int, k::Int): Construct bounds from 1st and 99th percentile of samples.

  • LinearizedHermiteBasis(density::Distributions.UnivariateDistribution, max_degree::Int, k::Int): Construct bounds from 1st and 99th percentile of reference density.

source
TransportMaps.CubicSplineHermiteBasis Type
julia
CubicSplineHermiteBasis

Probabilists' Hermite polynomial basis with cubic edge control. For degrees  ,

Degrees zero and one remain unweighted.

Fields

  • radius::Float64: radius of the spline for edge control.

Constructors

  • CubicSplineHermiteBasis(radius::Float64=3.0): Explicit constructor with radius=3.0

  • CubicSplineHermiteBasis(samples::Vector{<:Real}): Construct radius from from 1st and 99th percentile of samples.

  • CubicSplineHermiteBasis(density::Distributions.UnivariateDistribution): Construct radius from 1st and 99th percentile of reference density.

source
TransportMaps.GaussianWeightedHermiteBasis Type
julia
GaussianWeightedHermiteBasis

Probabilists' Hermite polynomial basis with Gaussian edge control. For degrees  , the basis function is

Degrees zero and one remain unweighted.

source
TransportMaps.LegendreBasis Type
julia
LegendreBasis

Legendre polynomial basis, orthogonal with respect to the uniform measure on  . The recurrence is

source
TransportMaps.ShiftedLegendreBasis Type
julia
ShiftedLegendreBasis

Shifted Legendre polynomial basis, orthogonal with respect to the uniform measure on :

source
TransportMaps.MultivariateBasis Type
julia
MultivariateBasis{T <: AbstractPolynomialBasis}

A multivariate polynomial basis function constructed as a tensor product of univariate polynomial bases.

Fields

  • multiindexset::Vector{Int}: Multi-index representing the polynomial degrees for each dimension

  • univariatebases::Vector{T}: Vector of univariate basis functions, one for each dimension

Constructors

  • MultivariateBasis(multiindexset::Vector{Int}, ::Type{T}) where T<:AbstractPolynomialBasis: Create a multivariate basis with the specified multi-index and basis type.

  • MultivariateBasis(multiindexset::Vector{Int}, basistype::AbstractPolynomialBasis): Constructor that accepts a basis instance instead of a type.

source

Functions ​

TransportMaps.basisfunction Function
julia
basisfunction(basis::HermiteBasis, αᵢ::Int, zᵢ::Real)

Evaluate the degree- Hermite polynomial .

source
julia
basisfunction(basis::LegendreBasis, αᵢ::Int, zᵢ::Real)

Evaluate the degree- Legendre polynomial .

source
julia
basisfunction(basis::ShiftedLegendreBasis, αᵢ::Int, zᵢ::Real)

Evaluate for  .

source
julia
basisfunction(basis::LinearizedHermiteBasis, αᵢ::Int, zᵢ::Real)

Evaluate the degree- linearized Hermite basis at .

source
julia
basisfunction(basis::CubicSplineHermiteBasis, αᵢ::Int, zᵢ::Real)

Evaluate the degree- spline-controlled Hermite basis at .

source
julia
basisfunction(basis::GaussianWeightedHermiteBasis, αᵢ::Int, zᵢ::Real)

Evaluate the degree- Gaussian-weighted Hermite basis at .

source
TransportMaps.basisfunction_derivative Function
julia
basisfunction_derivative(basis::HermiteBasis, αᵢ::Int, zᵢ::Real)

Evaluate  .

source
julia
basisfunction_derivative(basis::LegendreBasis, αᵢ::Int, zᵢ::Real)

Evaluate the derivative .

source
julia
basisfunction_derivative(basis::ShiftedLegendreBasis, αᵢ::Int, zᵢ::Real)

Evaluate    for  .

source
julia
basisfunction_derivative(basis::LinearizedHermiteBasis, αᵢ::Int, zᵢ::Real)

Evaluate the derivative of the degree- linearized Hermite basis at .

source
julia
basisfunction_derivative(basis::CubicSplineHermiteBasis, αᵢ::Int, zᵢ::Real)

Evaluate the derivative of the degree- spline-controlled Hermite basis at .

source
julia
basisfunction_derivative(basis::GaussianWeightedHermiteBasis, αᵢ::Int, zᵢ::Real)

Evaluate the derivative of the degree- Gaussian-weighted Hermite basis at .

source