histogrammar / histogrammar-docs

Jekyll sources for https://histogrammar.github.io/histogrammar-docs/.
Apache License 2.0
2 stars 2 forks source link

Categorize: Function returns a double #20

Closed isaacsanders closed 7 years ago

isaacsanders commented 7 years ago

The specification states that the function passed to Categorize, quantity, takes a data point and returns a double. I feel like a more appropriate name may be category, as well as the correction that it should return a string.

Source

jpivarski commented 7 years ago

That's a copy-paste error. The function accepted by Categorize takes a function that returns a string. The Scala implementation is explicit about that.

jpivarski commented 7 years ago

Fixed.