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... | |
int | vrna_convert_kcal_to_dcal (double energy) |
Convert floating point energy value into integer representation. More... | |
double | vrna_convert_dcal_to_kcal (int energy) |
Convert an integer representation of free energy in deka-cal/mol to kcal/mol. More... | |
enum vrna_unit_energy_e |
#include <ViennaRNA/utils/units.h>
Energy / Work Units.
#include <ViennaRNA/utils/units.h>
Temperature Units.
double vrna_convert_energy | ( | double | energy, |
vrna_unit_energy_e | from, | ||
vrna_unit_energy_e | to | ||
) |
#include <ViennaRNA/utils/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/utils/units.h>
Convert between temperature units.
temp | Input temperature value |
from | Input unit |
to | Output unit |
int vrna_convert_kcal_to_dcal | ( | double | energy | ) |
#include <ViennaRNA/utils/units.h>
Convert floating point energy value into integer representation.
This function converts a floating point value in kcal/mol into its corresponding deka-cal/mol integer representation as used throughout RNAlib.
energy | The energy value in kcal/mol |
double vrna_convert_dcal_to_kcal | ( | int | energy | ) |
#include <ViennaRNA/utils/units.h>
Convert an integer representation of free energy in deka-cal/mol to kcal/mol.
This function converts a free energy value given as integer in deka-cal/mol into the corresponding floating point number in kcal/mol
energy | The energy in deka-cal/mol |