Skip to content

Releases: henningte/irpeat

irpeat 0.3.0

25 Sep 11:23

Choose a tag to compare

irpeat 0.3.0

Major changes

  • Major restructuring: The models originally included with the 'irpeat' package are now stored in a separate data package 'irpeatmodels' to reduce the size of the 'irpeat' package. The 'irpeatmodels' package can be installed from Zenodo.
  • Add a new class irp_prediction_domain: This class stores the prediction domain for a model. Methods available are: Conversion from ir and ir_flat objects, plotting, check whether spectra in an ir object are within a prediction domain.
  • Rename:
    1. irp_content() to irp_predict().
    2. irp_holocellulose_2() to irp_holocellulose_content_2().
    3. irp_klason_lignin_2() to irp_klason_lignin_content_2().
    4. Output from irp_hkl_hodgkins(): holocellulose_hodgkins --> holocellulose_content_1, klason_lignin_hodgkins --> klason_lignin_content_1.
    5. Output from irp_eac_1(): eac --> eac_1.
    6. Output from irp_edc_1(): edc --> edc_1.
  • For existing and new models: Training and testing prediction domains were added and can now be used to check whether the models cannot be used to make reliable predictions.
  • By default, functions return Posterior

New functions

  • Add irp_preprocess_for(): Allows to extract the spectra after automated preprocessing as they would be used to make predictions.
  • Add irp_get_prediction_domain_for(): Allows to extract the prediction domain for a specific model.

New data

  • Add sample data (transmission mid-infrared spectra for peat samples from the 'redoxpeat' R package): irpeat_sample_data.

New models

  • irp_carbon_content_1(), irp_nitrogen_content_1(), irp_oxygen_content_1(), irp_hydrogen_content_1(), irp_phosphorus_content_1(), irp_potassium_content_1(), irp_sulfur_content_1(), irp_calcium_content_1(), irp_silicon_content_1(), irp_titanium_content_1(), irp_d13C_1(), irp_d15N_1(), irp_nosc_1(), irp_dgf0_1(), irp_bulk_density_1(), irp_loss_on_ignition(), irp_O_to_C_1(), irp_H_to_C_1(), irp_C_to_N_1(), irp_volume_fraction_solids_1(), irp_non_macroporosity_1(), irp_macroporosity_1(), irp_saturated_hydraulic_conductivity_1(), irp_specific_heat_capacity_1(), irp_dry_thermal_conductivity_1(), irp_microbial_nitrogen_content_1(), irp_degree_of_decomposition_1(), irp_degree_of_decomposition_2(), irp_degree_of_decomposition_3().

Full Changelog: v0.2.0...v0.3.0

irpeat 0.2.0

29 Oct 06:00

Choose a tag to compare

  • Performance improvement for irp_preprocess().
  • Updated irp_preprocess(), model preprocessing configurations, and prediction functions to consider the new arguments (1) new_x_type from ir::ir_bin(), and (2) bd_do_impute from ir::ir_bc().
  • Update the documentation: Adding explicit warnings to irp_content_klh_hodgkins(), irp_content_kl_hodgkins_model, and irp_content_h_hodgkins_model that the related models are not reliable for peat.

Bug fixes

  • Correct a typo which made it impossible to compute holocellulose_2 with irp_content().

v0.0.0.9100

20 Dec 10:05

Choose a tag to compare

v0.0.0.9100 Pre-release
Pre-release

First release of irpeat.

New models: Models to predict peat electron accepting and donating capacities (EAC and EDC).

Full Changelog: https://github.com/henningte/irpeat/commits/v0.0.0.9100