| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Data.Tensort.Utils.LogNat
Description
This module provides functions for calculating the natural logarithms in a way useful for creating logarithmic Bytesizes
Documentation
getLnBytesize :: Sortable -> Int Source #
Calculate a suitable logarithmic Bytesize from a Sortable
Examples
>>>getLnBytesize (SortBit [1 .. 27])4
>>>getLnBytesize (SortRec [(1, 16), (5, 23), (2, 4) ,(3, 8), (0, 15) , (4, 42)])2