- registration getting better

This commit is contained in:
Wim Pomp committed 2026-07-29 21:48:02 +02:00
1 parent bb3d46cc9d
commit 001df705ef
3 files changed
+52 -35

No files matched your search

+4 -4
View File
@@ -212,7 +212,7 @@ where
shape: Vec<f64>,
center: Vec<f64>,
fixed: BSpline<0, D>,
moving: BSpline<1, D>,
moving: BSpline<3, D>,
fixed_mu: FixedMu,
minmax: [f64; 2],
sampling: Sampling,
@@ -230,7 +230,7 @@ where
{
pub fn new(
fixed: BSpline<0, D>,
moving: BSpline<1, D>,
moving: BSpline<3, D>,
sampling: SamplingArg,
n_bins: usize,
edge: f64,
@@ -776,7 +776,7 @@ mod tests {
let a = array![0.0, 0.0, 1.0, 0.0, 1.0, 2.0, 1.0, 0.0, 1.0, 0.0, 0.0];
let b = array![0.0, 0.0, 1.0, 0.0, 1.0, 2.0, 1.0, 0.0, 1.0, 0.0, 0.0];
let fixed = BSpline::<0, _>::new(a.view());
let moving = BSpline::<1, _>::new(b.view());
let moving = BSpline::<3, _>::new(b.view());
let mus = vec![0.0, 0.001];
let mut npz = NpzWriter::new(File::create(
@@ -857,7 +857,7 @@ mod tests {
let a = array![0.0, 0.0, 1.0, 0.0, 1.0, 2.0, 1.0, 0.0, 1.0, 0.0, 0.0];
let b = array![0.0, 0.0, 1.0, 0.0, 1.0, 2.0, 1.0, 0.0, 1.0, 0.0, 0.0];
let fixed = BSpline::<0, _>::new(a.view());
let moving = BSpline::<1, _>::new(b.view());
let moving = BSpline::<3, _>::new(b.view());
let mus = Array1::linspace(-10.0, 10.0, 500);
let s = a.len() as f64;