combine_mass_props_and_unc: Combine mass properties and uncertainties

View source: R/massprops.R

combine_mass_props_and_uncR Documentation

Combine mass properties and uncertainties

Description

combine_mass_props_and_unc() is a convenience wrapper that concatenates the results of combine_mass_props() and combine_mass_props_unc().

Usage

combine_mass_props_and_unc(mpl)

Arguments

mpl

A list of mass properties and uncertainties lists, each of which contains the following named elements:

  • mass Numeric mass.

  • center_mass Numeric 3-vector center of mass.

  • point Logical indicating point mass. The inertia of point masses is excluded from calculations.

  • inertia Numeric 3x3 matrix inertia tensor.

  • sigma_mass mass uncertainty

  • sigma_center_mass center of mass uncertainty (3-dimensional numeric)

  • sigma_inertia Inertia tensor uncertainty (3x3 numeric matrix)

Value

Combined mass properties list with the same named elements.

Examples

leaves <- names(igraph::neighbors(sawe_tree, "Combined", mode = "in"))
mpl <- Map(f = function(id) get_mass_props_and_unc(sawe_table, id), leaves)
combine_mass_props_and_unc(mpl)


massProps documentation built on April 4, 2025, 1:45 a.m.