7 DMatrix, |
7 DMatrix, |
8 DVector |
8 DVector |
9 }; |
9 }; |
10 use std::iter::Zip; |
10 use std::iter::Zip; |
11 use std::ops::RangeFrom; |
11 use std::ops::RangeFrom; |
|
12 use serde::Serialize; |
12 |
13 |
13 pub use alg_tools::linops::*; |
14 pub use alg_tools::linops::*; |
14 use alg_tools::norms::{ |
15 use alg_tools::norms::{ |
15 L1, Linfinity, L2, Norm |
16 L1, Linfinity, L2, Norm |
16 }; |
17 }; |
405 where F : Float + ToNalgebraRealField<MixedType=F> + nalgebra::RealField, |
406 where F : Float + ToNalgebraRealField<MixedType=F> + nalgebra::RealField, |
406 BT : SensorGridBT<F, S, P, N>, |
407 BT : SensorGridBT<F, S, P, N>, |
407 S : Sensor<F, N>, |
408 S : Sensor<F, N>, |
408 P : Spread<F, N>, |
409 P : Spread<F, N>, |
409 Convolution<S, P> : Spread<F, N> + LocalAnalysis<F, BT::Agg, N>, |
410 Convolution<S, P> : Spread<F, N> + LocalAnalysis<F, BT::Agg, N>, |
|
411 [F; N]: Serialize, |
410 /*ShiftedSensor<F, S, P, N> : LocalAnalysis<F, BT::Agg, N>, |
412 /*ShiftedSensor<F, S, P, N> : LocalAnalysis<F, BT::Agg, N>, |
411 Weighted<ShiftedSensor<F, S, P, N>, F> : LocalAnalysis<F, BT::Agg, N>*/ { |
413 Weighted<ShiftedSensor<F, S, P, N>, F> : LocalAnalysis<F, BT::Agg, N>*/ { |
412 type Observable = DVector<F>; |
414 type Observable = DVector<F>; |
413 |
415 |
414 fn write_observable(&self, b : &Self::Observable, prefix : String) -> DynError { |
416 fn write_observable(&self, b : &Self::Observable, prefix : String) -> DynError { |
427 where F : Float + ToNalgebraRealField<MixedType=F> + nalgebra::RealField, |
429 where F : Float + ToNalgebraRealField<MixedType=F> + nalgebra::RealField, |
428 BT : SensorGridBT<F, S, P, N>, |
430 BT : SensorGridBT<F, S, P, N>, |
429 S : Sensor<F, N>, |
431 S : Sensor<F, N>, |
430 P : Spread<F, N>, |
432 P : Spread<F, N>, |
431 Convolution<S, P> : Spread<F, N> + LocalAnalysis<F, BT::Agg, N>, |
433 Convolution<S, P> : Spread<F, N> + LocalAnalysis<F, BT::Agg, N>, |
|
434 [F; N] : Serialize, |
432 /*ShiftedSensor<F, S, P, N> : LocalAnalysis<F, BT::Agg, N>, |
435 /*ShiftedSensor<F, S, P, N> : LocalAnalysis<F, BT::Agg, N>, |
433 Weighted<ShiftedSensor<F, S, P, N>, F> : LocalAnalysis<F, BT::Agg, N>*/ { |
436 Weighted<ShiftedSensor<F, S, P, N>, F> : LocalAnalysis<F, BT::Agg, N>*/ { |
434 |
437 |
435 fn findim_quadratic_model( |
438 fn findim_quadratic_model( |
436 &self, |
439 &self, |