public class CoreSection extends java.lang.Object implements SampleGroup
Sample
s. This can be useful, for instance, for
rotating an entire section to align its declination with a neighbouring
section.Modifier and Type | Class and Description |
---|---|
static class |
CoreSection.End
A representation of the end of a core section -- top or bottom.
|
Modifier and Type | Method and Description |
---|---|
static CoreSection |
fromSamples(java.util.List<Sample> samples)
Returns a core section containing the specified samples in the
specified order.
|
Vec3 |
getDirectionNearEnd(CoreSection.End end,
int nSamples)
Calculates and returns the Fisherian mean direction of the
topmost or bottommost samples in this section.
|
java.util.List<Sample> |
getSamples() |
java.util.List<Sample> |
getSamplesNearEnd(CoreSection.End end,
int nSamples)
Returns the topmost or bottommost samples in this core section.
|
void |
rotateDeclinations(double clockwiseDegrees)
Rotates the declinations of all the data points in all the samples
by the specified angle.
|
public static CoreSection fromSamples(java.util.List<Sample> samples)
CoreSection
contains references to the original samples,
so operations upon it may modify them.samples
- a list of samplespublic java.util.List<Sample> getSamples()
getSamples
in interface SampleGroup
public void rotateDeclinations(double clockwiseDegrees)
clockwiseDegrees
- rotation anglepublic java.util.List<Sample> getSamplesNearEnd(CoreSection.End end, int nSamples)
end
- the end from which to return the samples
(top or bottom)nSamples
- the number of samples to return (from 0 to
the number of samples in this section)public Vec3 getDirectionNearEnd(CoreSection.End end, int nSamples)
end
- the section end (top or bottom)nSamples
- the number of samples to averagejava.lang.IllegalStateException
- if none of the section end samples have
a direction