CostDistribution.from_data_no_bins#
- static CostDistribution.from_data_no_bins(matrix, cost_matrix, *args, **kwargs)[source]#
Convert values and a cost matrix into a CostDistribution.
create_log_bins will be used to generate some bin edges.
- Parameters:
matrix (ndarray) – The matrix to calculate the cost distribution for. This matrix should be the same shape as cost_matrix
cost_matrix (ndarray) – A matrix of cost relating to matrix. This matrix should be the same shape as matrix
*args – arguments to pass through to create_log_bins
**kwargs – arguments to pass through to create_log_bins
- Returns:
An instance of CostDistribution containing the given data.
- Return type:
cost_distribution
See also