Removed downsampling entirely
This commit is contained in:
@@ -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 == "" {
|
||||||
|
|||||||
@@ -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],
|
||||||
|
|||||||
5
main.go
5
main.go
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user