oie-mines-paristech / lca_algebraic

Layer over brightway2 for algebraic definition of parametric models and super fast computation of LCA
BSD 2-Clause "Simplified" License
34 stars 18 forks source link

New type of distribution based on empirical data #40

Open RomainBes opened 6 months ago

RomainBes commented 6 months ago

I was wondering if it would be possible, and relatively easy, to add a new type of distribution for parameters based on empirical distribution that would rely on the random library?

import random
random.choices(np.arange(0, 4), weights=np.arange(0, 4), k=10)
raphaeljolivet commented 2 months ago

It could instead. But I guess semantically it would be better to introduce a new type of "integer" parameters then. That's something I had in mind.