From 028b145ad42b337b5d048971cb036b8e74cfb16a Mon Sep 17 00:00:00 2001 From: zhengp0 Date: Thu, 10 Aug 2023 06:50:12 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20zhengp0/?= =?UTF-8?q?xspline@1ac44d124e7ffb0c5265c1a2099bfc7a426489ce=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _sources/quickstart.rst.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/_sources/quickstart.rst.txt b/_sources/quickstart.rst.txt index f76a730..57bc7d6 100644 --- a/_sources/quickstart.rst.txt +++ b/_sources/quickstart.rst.txt @@ -7,7 +7,7 @@ Usage You can use XSpline as a univariate function or use it to get design matrix. -.. code:: python +.. code-block:: python import numpy as np import matplotlib.pyplot as plt @@ -20,7 +20,7 @@ You can use XSpline as a univariate function or use it to get design matrix. One is to use XSpline as a univariate function. In this case, user must provide coefficients for the spline bases. -.. code:: python +.. code-block:: python np.random.seed(123) spline.coef = np.random.randn(len(spline)) @@ -34,7 +34,7 @@ coefficients for the spline bases. XSpline can be used to obtain derivatives. -.. code:: python +.. code-block:: python dy, ddesign_mat = spline(x, order=1), spline.get_design_mat(x, order=1) @@ -46,7 +46,7 @@ XSpline can be used to obtain derivatives. XSpline can be used to obtain definite integrals. -.. code:: python +.. code-block:: python iy, idesign_mat = spline(x, order=-1), spline.get_design_mat(x, order=-1) @@ -58,7 +58,7 @@ XSpline can be used to obtain definite integrals. XSpline can extrapolate with different polynomial options -.. code:: python +.. code-block:: python np.random.seed(123) # constant extrapolation one the left and linear extrapolation on the right