assess_rotation: Assess rotational imbalance of a scan

View source: R/assess_rotation.r

assess_rotationR Documentation

Assess rotational imbalance of a scan

Description

A good quality of 3d scans is crucial for an assessment of similarity of striation marks between different bullets. Here, we assess rotational imbalance - we measure this as the ratio between the difference in the number of missing values on the left and the right of a scan at two different heights. A ratio of 1 would indicate a balance in the proportion of missing values between the left hand side and the right hand side of a scan. Large deviations of 1 indicate an imbalance to the left or right. A log transform of the ratio akes the result symmetric around 0. Large deviations from 0 indicate a stronger deviation.

Usage

assess_rotation(x3p, width = 0.2)

Arguments

x3p

scan in x3p format

width

how wide are the bands that we want to compare on the left and the right?

Value

absolute value of the log of the ratio of the number of missing values on the left compared to the right side at the bottom and the middle of the scan.

Examples

data(fau277_bb_l2)
assess_rotation(fau277_bb_l2) # this scan has a particularly high percentage of missing values
assess_rotation(fau001_ba_l1) # good scan

heike/DS401 documentation built on Oct. 23, 2022, 1:39 p.m.