RNAlib-2.4.14
|
|
Functions to convert between various physical units. More...
Functions to convert between various physical units.
Files | |
file | units.h |
Physical Units and Functions to convert them into each other. | |
Enumerations | |
enum | vrna_unit_energy_e { VRNA_UNIT_J, VRNA_UNIT_KJ, VRNA_UNIT_CAL_IT, VRNA_UNIT_DACAL_IT, VRNA_UNIT_KCAL_IT, VRNA_UNIT_CAL, VRNA_UNIT_DACAL, VRNA_UNIT_KCAL, VRNA_UNIT_G_TNT, VRNA_UNIT_KG_TNT, VRNA_UNIT_T_TNT, VRNA_UNIT_EV, VRNA_UNIT_WH, VRNA_UNIT_KWH } |
Energy / Work Units. More... | |
enum | vrna_unit_temperature_e { VRNA_UNIT_K, VRNA_UNIT_DEG_C, VRNA_UNIT_DEG_F, VRNA_UNIT_DEG_R, VRNA_UNIT_DEG_N, VRNA_UNIT_DEG_DE, VRNA_UNIT_DEG_RE, VRNA_UNIT_DEG_RO } |
Temperature Units. More... | |
Functions | |
double | vrna_convert_energy (double energy, vrna_unit_energy_e from, vrna_unit_energy_e to) |
Convert between energy / work units. More... | |
double | vrna_convert_temperature (double temp, vrna_unit_temperature_e from, vrna_unit_temperature_e to) |
Convert between temperature units. More... | |
enum vrna_unit_energy_e |
#include <ViennaRNA/units.h>
Energy / Work Units.
#include <ViennaRNA/units.h>
Temperature Units.
double vrna_convert_energy | ( | double | energy, |
vrna_unit_energy_e | from, | ||
vrna_unit_energy_e | to | ||
) |
#include <ViennaRNA/units.h>
Convert between energy / work units.
energy | Input energy value |
from | Input unit |
to | Output unit |
double vrna_convert_temperature | ( | double | temp, |
vrna_unit_temperature_e | from, | ||
vrna_unit_temperature_e | to | ||
) |
#include <ViennaRNA/units.h>
Convert between temperature units.
temp | Input temperature value |
from | Input unit |
to | Output unit |