code: func NewVisvalingamReducer(threshold float64, minPointsToKeep int) *VisvalingamReducer {
  	return &VisvalingamReducer{
  		Threshold: threshold,
  		ToKeep:    minPointsToKeep,
  	}
  }
docs: // NewVisvalingamReducer creates a new VisvalingamReducer.