iliekturtles / uom

Units of measurement -- type-safe zero-cost dimensional analysis
Apache License 2.0
989 stars 89 forks source link

Add support for Metabolic Equivalent of Task (MET) quantity #434

Open baarkerlounger opened 11 months ago

baarkerlounger commented 11 months ago

uom supports kilocalories as a unit of energy. Having MET defined as well would help with calculating kilocalories in exercise contexts in a type safe way.

iliekturtles commented 11 months ago

Looks like there are a couple possible definitions: W / h and BTU / (h * ft^2). Is one more common than the other? Any idea what the quantity for either would be named?

baarkerlounger commented 11 months ago

I think that should be W / kg but that's the one I've seen used more often, and I'd expect the quantity to be called metabolic equivalent of task but I'm not sure if both are needed how best to distinguish them. Perhaps met_per_mass and met_per_surface_area?