summaryrefslogtreecommitdiff
path: root/histogram.py
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2022-02-08 17:46:56 -0800
committerScott Gasch <[email protected]>2022-02-08 17:46:56 -0800
commite8fbbb7306430478dec55d2c963eed116d8330cc (patch)
tree28c61b43d11df95b0d70d7f12eba139e02a3942e /histogram.py
parent0d63d44ac89aab38fe95f36497adaf95110ab949 (diff)
More cleanup, yey!
Diffstat (limited to 'histogram.py')
-rw-r--r--histogram.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/histogram.py b/histogram.py
index c673e16..f85abea 100644
--- a/histogram.py
+++ b/histogram.py
@@ -1,8 +1,9 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
+"""A text-based simple histogram helper class."""
+
import math
-from numbers import Number
from typing import Dict, Generic, Iterable, List, Optional, Tuple, TypeVar
T = TypeVar("T", int, float)
@@ -11,6 +12,8 @@ Count = int
class SimpleHistogram(Generic[T]):
+ """A simple histogram."""
+
# Useful in defining wide open bottom/top bucket bounds:
POSITIVE_INFINITY = math.inf
NEGATIVE_INFINITY = -math.inf