-
Notifications
You must be signed in to change notification settings - Fork 19
Math
This page describes the math used in the Calistar spreadsheet:
-
Dimensionality
-
Skew
-
Error propagation
The dimensional error is the percent difference between the measured and nomial length of the print. For each measured x-length, this is calculated the same for inner- and outer-measurements using
The value reported in the spreadsheet is the average of all of these relative errors, i.e.
where the average is taken only over the number of valid measurements along a given axis and
See this Stack Exchange discussion for the application of the Law of Cosines to a parallelogram. Adapting the notation in the response, set
I prefer the form above with all four side lengths because, although in theory there are only three free variables, one uses all of the noisy measurements (
You can see how Klipper calculates its skew factor here, which is the same as Marlin. The skew factor is defined as the cotangent of the angle
One of the main features of the Calistar spreadsheet is uncertainty quantification (UQ) for each of the calculated quantities. What this means is that an error term is associated to each of the calculated quantities (dimensional error and skew). This error term is a result of the uncertainty inherent to using an instrument with finite precision to make your measurements, such as digital calipers.
Why should you care? If the calculated quantity is within 1- or 2-standard deviations of the nominal value (0% for dimensional error and 0 degrees for skew), then you probably can't improve it any more, at least not in any measureable way. You might actually make it worse if you try!
Error is estimated by calculating the gradient vector
where
The derivative of the error term given above with respect to the
Hence the variance of the calculated dimensional error is
Note that the dimensional error is an affine function of the measurements, so this calculation is exact.
It takes some work to calculate by hand, but one can verify
Hence the variance in