This commit is contained in:
William Clark 2023-11-21 14:57:53 +00:00
parent a58f3e8b5f
commit e2d57edf45
5 changed files with 10 additions and 14 deletions

View File

@ -15,8 +15,6 @@ const (
DurWaitRestart = 1000 * time.Millisecond
)
// Continuously sample each configured channel, apply filter, and save result
// in a mutex controlled shared data object, that can be accessed at any time
// by a web-request or similar.

View File

@ -1,6 +1,5 @@
package core
type Channel struct {
Id int `json:"id"`
Value float64 `json:"value"`

View File

@ -1,6 +1,5 @@
package filter
func AlphaBetaFilter(arr []float64, init float64) float64 {
value := init