Skip to content

soypat/tvd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tvd

Total Variation Denoising filter.

  • Ideal for capturing edges.
  • Varying signals may artifact with "staircase effect", see image.

denoising results

Usage (1D)

    const lambda = 2
    var noisyData []float64 = getData()
    denoised := tvd.Denoise1D(noisyData, lambda)
    fmt.Println(denoised)