pinnx.fnspace module

Contents

pinnx.fnspace module#

This module provides function spaces for operator learning and uncertainty quantification. Function spaces represent infinite-dimensional spaces of functions, useful for generating training data and input functions.

Function Spaces#

wasserstein2: Computes the 2-Wasserstein distance between distributions.

FunctionSpace: Base class for function spaces.

PowerSeries: Function space of power series expansions.

Chebyshev: Chebyshev polynomial function space.

GRF: Gaussian Random Field for 1D functions.

GRF_KL: Gaussian Random Field with Karhunen-Loève expansion.

GRF2D: Gaussian Random Field for 2D functions.

wasserstein2

Compute 2-Wasserstein (W2) metric to measure the distance between two GRF.

FunctionSpace

Function space base class.

PowerSeries

Power series.

Chebyshev

Chebyshev polynomial.

GRF

Gaussian random field (Gaussian process) in 1D.

GRF_KL

Gaussian random field (Gaussian process) in 1D.

GRF2D

Gaussian random field in [0, 1]x[0, 1].