Removed downsampling entirely

This commit is contained in:
David Högborg
2015-07-15 23:15:09 +02:00
parent 80521b8e94
commit 26af95fd18
3 changed files with 0 additions and 27 deletions

View File

@@ -14,7 +14,6 @@ type RunConfig struct {
InputFile string InputFile string
OutputFile string OutputFile string
Format string Format string
Downsample int
} }
type GoPow struct { type GoPow struct {
@@ -28,7 +27,6 @@ func NewGoPow(c *cli.Context) (*GoPow, error) {
InputFile: c.String("input"), InputFile: c.String("input"),
OutputFile: c.String("output"), OutputFile: c.String("output"),
Format: c.String("format"), Format: c.String("format"),
Downsample: c.Int("downsample"),
} }
if config.InputFile == "" { if config.InputFile == "" {

View File

@@ -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{ return &LineComplex{
Time: &datetime, Time: &datetime,
Hash: cells[0] + cells[1], Hash: cells[0] + cells[1],

View File

@@ -66,11 +66,6 @@ func main() {
Value: "png", Value: "png",
Usage: "Output file format, default 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{ cli.BoolFlag{
Name: "verbose", Name: "verbose",
Usage: "Enable more verbose output", Usage: "Enable more verbose output",