openpathsampling.numerics.VoxelLookupFunction

class openpathsampling.numerics.VoxelLookupFunction(left_bin_edges, bin_widths, counter)[source]

Turn sparse histogram into a lookup function.

For any data point inside a voxel, return the sparse histogram value for that voxel. If no such voxel, returns 0.0. No interpolation.

__init__(left_bin_edges, bin_widths, counter)[source]

Methods

__init__(left_bin_edges, bin_widths, counter)

bin_to_left_edge(bin_num)

df_2d([x_range, y_range])

Return a pandas.DataFrame for 2D lookup functions.

keys()

val_to_bin(val)

values()

Attributes

counter_by_bin_edges