From 26af95fd18b52274d63277eb7e95f9d9f85673dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Ho=CC=88gborg?= Date: Wed, 15 Jul 2015 23:15:09 +0200 Subject: [PATCH] Removed downsampling entirely --- gopow/gopow.go | 2 -- gopow/line.go | 20 -------------------- main.go | 5 ----- 3 files changed, 27 deletions(-) diff --git a/gopow/gopow.go b/gopow/gopow.go index 2a1a24c..07dabfb 100644 --- a/gopow/gopow.go +++ b/gopow/gopow.go @@ -14,7 +14,6 @@ type RunConfig struct { InputFile string OutputFile string Format string - Downsample int } type GoPow struct { @@ -28,7 +27,6 @@ func NewGoPow(c *cli.Context) (*GoPow, error) { InputFile: c.String("input"), OutputFile: c.String("output"), Format: c.String("format"), - Downsample: c.Int("downsample"), } if config.InputFile == "" { diff --git a/gopow/line.go b/gopow/line.go index 939bdbc..bbe092b 100644 --- a/gopow/line.go +++ b/gopow/line.go @@ -76,26 +76,6 @@ func NewLineComplex(cells []string) *LineComplex { } } - // downsampl := 1 - // // the mean of 10 hz makes up a pixel - // samplesFilter := []float64{} - // for i := 0; i < len(samples); i = i + downsampl { - - // mean := 0.0 - // samps := 0 - - // for ii := 0; ii < downsampl; ii++ { - // if len(samples)-1 > i+ii { - // samps++ - // mean += samples[i+ii] - // } - // } - - // mean = mean / float64(samps) - - // samplesFilter = append(samplesFilter, mean) - // } - return &LineComplex{ Time: &datetime, Hash: cells[0] + cells[1], diff --git a/main.go b/main.go index 16bdfb1..f580104 100644 --- a/main.go +++ b/main.go @@ -66,11 +66,6 @@ func main() { Value: "png", Usage: "Output file format, default png", }, - cli.IntFlag{ - Name: "downsample,d", - Value: 10, - Usage: "Downsample bandwidth by factor. Use if sampled bandwidth is unmanagable wide. 1 is 1:1, 10 is 1:10 and so on.", - }, cli.BoolFlag{ Name: "verbose", Usage: "Enable more verbose output",