InterpolatePy 3.2.2
“A comprehensive Python library for generating smooth trajectories and curves with precise control over position, velocity, acceleration, an…”
Module built on the numeric Python stackPython reads an environment variable
SHA-256f764a562ab68d2dd8f6b63fca8f0bef0a47c750fbab660ffa39dba411da0c0d0
MaleculeH₂(DbOs)
Evidence
⋯8 lines
9from __future__ import annotations
10
11import numpy as np
12from scipy.linalg import solve
13from typing import TYPE_CHECKING
14
15if TYPE_CHECKING:
16 import matplotlib.pyplot as plt
17 from mpl_toolkits.mplo …
47:30… R0913
48 self,
49 degree: int,
50 points: list | np.ndarray,
51 times: list | np.ndarray | None = None,
52 initial_velocity: list | np.ndarray | None = None,
53 final_veloc …
91:5… if not isinstance(points, np.ndarray):
92 points = np.array(points, dtype=np.float64)
93
94 # Ensure points are 2D
95 if points.ndim == 1:
96 # For 1D points, reshape to …
112:30… e if not provided
113 if times is None:
114 times = np.arange(len(points), dtype=np.float64)
115 elif not isinstance(times, np.ndarray):
116 times = np.array(times, dtype=np.flo …
131:46… only need it for basis functions
132 temp_control_points = np.zeros((len(knots) - degree - 1, 1))
133 self.temp_spline = BSpline(degree, knots, temp_control_points)
134
135 # Compute control …
No evidence locations were recorded for this file. Raw result