srim.analysis¶
- srim.analysis.implant_summary(df)¶
Summarize per-ion final positions the way SRIM does in the header of
RANGE.txt.The values reproduce
srim.output.Range.summary(which SRIM computes from all ions) to within a percent or two; SRIM’sRANGE_3D.txtcan lack a few ions.- Parameters:
df (
pandas.DataFrame) – needs columnsdepth_A,y_Aandz_A[Ang] (srim.output.Range3D.df)- Returns:
n_ions: number of ionsmean_depth_A: projected range, mean ofdepth_Astraggle_depth_A: projected straggling, sample standard deviation (ddof=1) ofdepth_A(nanfor one ion)lateral_range_A: mean of(|y| + |z|) / 2lateral_straggle_A: sample standard deviation of the signedyandzvalues taken together (2N values,ddof=1). Agrees with SRIM’sRANGE.txtheader within ~1 % on the reference data; SRIM’s exact formula is undocumented.radial_range_A: mean ofr = sqrt(y**2 + z**2)radial_straggle_A: sample standard deviation ofrskewness,kurtosis: third and fourth standardized moments ofdepth_A(population form; kurtosis is 3 for a Gaussian)
- Return type:
dict