How results are checked

How each method in Structural Analysis is checked: against a published value, a hand calculation, a second method or data with a known answer.

Every method in the app is checked against something outside its own code. The checks are:

The checks run as automatic tests on every change, so a result that drifts is caught before it is released. This version runs in your browser. Its tests compare its results with those of the checked engine on the same data, so the two give the same numbers. The one exception is the map’s form lines for drillhole data. Since version 2.3.1 the search radius follows the spacing of the holes, and a hole far from the rest no longer sets the grid.

Stereonet and statistics

What Checked against Result
Kamb contours Vollmer (1995), Computers & Geosciences 21: for 50 readings the expected count is 7.63 and sigma 2.54 Same to 0.005
Kamb contours A second program that counts readings one by one with explicit angles Same at 60 random points to 10⁻⁹
Schmidt (1%) contours A one-by-one count of the readings inside a 1% circle Same to 10⁻⁹
Fisher contours Theory: averaged over the whole net, the density of any data is exactly 1 Averages 1
Plotting position and poles Hand calculation: a plane dipping 55° towards 200° has its pole plunging 35° towards 020° Exact
Mean, Fisher kappa and 95% cone The first, separately checked version of the maths, run in Posit Mean pole 53.1° / 199.7°, cone 3.03°, same
Mean, Fisher kappa and 95% cone 400 samples of 30 readings drawn from a Fisher distribution with a known mean and kappa 20 (exact sampler, Fisher, Lewis & Embleton 1987) The cone held the true mean in 94.2% of samples, against 95% expected. The median kappa was 20.0, and the median error of the mean 2.75°
Principal axes and fold axis Theory: for a girdle, the smallest axis is the pole to the girdle Same to 10⁻⁹
Intersection of two planes Hand calculation: planes 30/090 and 40/180 meet at plunge 25.4°, trend 124.5° Same to 0.001°
Rotation Theory: rotating does not change the angles between readings Spread unchanged
Unfolding A folded bed made with a known fold The girdle becomes a tight cluster
Rose confidence of the mean 400 simulated samples with a known mean direction The 95% wedge holds the true mean about 95% of the time
Orientation sets Five data sets made with three known sets plus 10% scatter 3 sets found every time, axes within 3°, 90% or more of readings in the right set
Orientation sets Readings spread evenly, with no sets No sets found

Oriented core (alpha / beta)

What Checked against Result
Alpha / beta to dip and dip direction Planes of known orientation turned into alpha / beta and back, for 4 hole attitudes × 5 planes × all 16 conventions Worst error under 0.01°
The convention check Data made with a known convention, in holes drilled four ways Picks the true convention
The convention check Holes that are nearly parallel, which cannot tell conventions apart Says it cannot decide, rather than guessing
The default convention on real data A mining site’s own calculated dips (729 oriented-core readings). The data are private, so this check is not in the automatic tests Median difference 0.14°, and 92% within 5°

Drillholes

What Checked against Result
Sampling-bias (Terzaghi) correction Readings drawn from a known 50 / 50 mix of steep and flat planes, as a vertical hole sees them Weighting restores the 50 / 50 mix
Fracture frequency and spacing Structures placed evenly a known distance apart Known frequency and spacing
RQD from the depths A worked example by hand (pieces of 0.25, 0.05, 0.40, 0.20, 0.30 and 0.80 m in 2 m) 97.5%
RQD from frequency Priest and Hudson (1976): 73.6% at 10 fractures a metre Same to 0.001

What has not been checked

  • No side-by-side run with Dips, Stereonet 11 or Orient on the same file. The methods are checked against published values and hand calculations, not against those programs’ output.
  • The mean, kappa and cone are checked against the first version of the maths and, since 6 Oct 2026, against simulated Fisher samples with a known answer (cone coverage 94.2%, kappa recovered). Still not compared with a published worked example or another program.
  • The Bingham confidence ellipse is checked only against that first version.
  • The cluster / girdle label uses Woodcock’s K = 1 rule. It is a convention, not a significance test.
  • Sets closer together than about twice their spread cannot be told apart. The test above shows two sets 9° apart with a 7° spread found as one.
  • Alpha / beta conventions differ between sites. The real-data check above shows the default fits one site’s data. Use the convention check, and a few structures of known orientation, for your own.

To cite Structural Analysis in a report or paper, see How to cite.