@@ -116,7 +116,7 @@ where
116116 /// # Panics
117117 /// - Panics in debug if the length of the trace is different from the size of [`SnrProcessor`].
118118 pub fn process ( & mut self , trace : ArrayView1 < T > , class : usize ) {
119- debug_assert ! ( trace. len ( ) == self . size( ) ) ;
119+ debug_assert ! ( trace. shape ( ) [ 0 ] == self . size( ) ) ;
120120 debug_assert ! ( class < self . num_classes( ) ) ;
121121
122122 self . mean_var . process ( trace) ;
@@ -168,7 +168,7 @@ where
168168
169169 /// Return the number of classes handled.
170170 pub fn num_classes ( & self ) -> usize {
171- self . classes_count . len ( )
171+ self . classes_count . shape ( ) [ 0 ]
172172 }
173173
174174 /// Determine if two [`SnrProcessor`] are compatible for addition.
@@ -351,7 +351,7 @@ where
351351 /// # Panics
352352 /// Panics in debug if the length of the trace is different from the size of [`Snr`].
353353 pub fn process ( & mut self , trace : ArrayView1 < T > , class : usize ) {
354- debug_assert ! ( trace. len ( ) == self . size( ) ) ;
354+ debug_assert ! ( trace. shape ( ) [ 0 ] == self . size( ) ) ;
355355 debug_assert ! ( class < self . num_classes( ) ) ;
356356
357357 self . mean_var . process ( trace) ;
@@ -397,7 +397,7 @@ where
397397
398398 /// Returns the number of classes handled.
399399 pub fn num_classes ( & self ) -> usize {
400- self . classes_count . len ( )
400+ self . classes_count . shape ( ) [ 0 ]
401401 }
402402
403403 /// Determine if two [`NicvProcessor`] are compatible for addition.
@@ -525,9 +525,9 @@ where
525525 /// * `class` - Indicates to which of the two partitions the given trace belongs.
526526 ///
527527 /// # Panics
528- /// Panics in debug if `trace.len() != self.size()`.
528+ /// Panics in debug if `trace.shape()[0] != self.size()`.
529529 pub fn process ( & mut self , trace : ArrayView1 < T > , class : bool ) {
530- debug_assert ! ( trace. len ( ) == self . size( ) ) ;
530+ debug_assert ! ( trace. shape ( ) [ 0 ] == self . size( ) ) ;
531531
532532 if class {
533533 self . mean_var_2 . process ( trace) ;
0 commit comments