     
     
     // Mean value
-    func mean() -> Float {
+    var mean: Float {
         return dsbuffer_mean(self.buffer)
     }
     
     
     // Vector length
-    func length() -> Float {
+    var length: Float {
         return dsbuffer_length(self.buffer)
     }
     
     
     // Remove mean value (centralize)
-    func removeMean() -> [Float] {
+    func centralized() -> [Float] {
         var result = [Float](count: self.size, repeatedValue: 0.0)
         dsbuffer_remove_mean(self.buffer, &result)
         return result

            let a = Float(arc4random_uniform(100))
            buf.push(a)
            let signals = buf.signals
            print(a)
            print(signals)
            assert(signals[size-1] == a)
        }
        
        print("\nDSBuffer test OK:\n\n")
    }

    
    
    // normalize vector to have unit length
    func normalizedToUnitLength(centralized: Bool) -> [Float] {
        var result = [Float](count: self.size, repeatedValue: 0.0)
        dsbuffer_normalize_to_unit_length(self.buffer, centralized, &result)
        return result
    }
    
    
    func dotProduct(with: [Float]) -> Float {
        assert(self.size == with.count)
        return dsbuffer_dot_product(self.buffer, with)
    }
    
    
