public class CoreSection extends 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(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.
|
List<Sample> |
getSamples() |
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(List<Sample> samples)
CoreSection
contains references to the original samples,
so operations upon it may modify them.samples
- a non-null list of samplespublic List<Sample> getSamples()
getSamples
in interface SampleGroup
public void rotateDeclinations(double clockwiseDegrees)
clockwiseDegrees
- rotation anglepublic 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 averageIllegalStateException
- if none of the section end samples have
a directionCopyright © 2022. All rights reserved.