anchor.diff:                  else (arr.[i-padding] <- (acc2 / Math.Sqrt(myRicker.ScaleDecay))) //corrects for admissibility (see Polikar wavelet tutorial)
               loop 0. (- myRickerOffsetRise) 
           arr
  -
  -
       
  -    let findLocalMaxima2D paddedTrace ricker neighbourPoints = 
  +    [<Obsolete("Do not use anymore. Use transform2D instead.")>]
  +    let cWT1D (paddedTrace: float []) (myRicker: Ricker.myRicker) = transform2D 20000 myRicker paddedTrace
  +
  +    ///calculates the positions of maxima with given neighbourPoints and returns a maximaArray and the wavelet transformed trace
  +    let isolateLocalMaxima borderpadding paddedTrace ricker neighbourPoints = 
           let (cWTArray: float []) = 
  -            cWT1D paddedTrace ricker 
  +            transform2D borderpadding ricker paddedTrace  
           let arrayOfMaxima = Array.zeroCreate (Array.length cWTArray)
           ///gets coordinates of pixel and number of pixel in surrounding and gives bool, if coor has highest value
           let checkListsForContinuousDecline pointindex =      
  
positive.code:             //checks order of each direction (left/right)
              let boolList = surroundingList |> List.map  (fun x -> isSortedAsc x)
              //if any list is not sorted -> false
              not (boolList |> List.contains false)
  
          //calculates decline for every point
          for i=neighbourPoints to (cWTArray.Length)-(neighbourPoints+1) do
              if checkListsForContinuousDecline i  = true  
  
negative.code: 
  
      /// gets finalcentroidlist and cellnumber and fits the fitting with threshold to trace. With numberOfSurroundingIntensities you can set the area in which a maxima has to be the highest point
      let fittingCaSignalToMaxima rickerarray threshold borderpadding numberOfSurroundingIntensities rise (paddedTrace:float[]) = 
          let numberOfFrames = paddedTrace.Length - (2 * borderpadding)
          let (maximaarray,cWTCurve) = collectMaxima rickerarray numberOfSurroundingIntensities borderpadding paddedTrace
  
          let fittedList =
              [|(int rise)..numberOfFrames-1|]
  