Class CnossosPathBuilder


  • public class CnossosPathBuilder
    extends Object
    Generate a CnossosPath from a vertical cut plane data
    • Constructor Detail

      • CnossosPathBuilder

        public CnossosPathBuilder()
    • Method Detail

      • computeSegment

        public static SegmentPath computeSegment​(org.locationtech.jts.geom.Coordinate src,
                                                 org.locationtech.jts.geom.Coordinate rcv,
                                                 double[] meanPlane)
        Compute the segment path
        Parameters:
        src -
        rcv -
        meanPlane -
        Returns:
        the calculated segment
      • computeSegment

        public static SegmentPath computeSegment​(org.locationtech.jts.geom.Coordinate src,
                                                 org.locationtech.jts.geom.Coordinate rcv,
                                                 double[] meanPlane,
                                                 double gPath,
                                                 double gS)
        Compute the segment path with more attribute
        Parameters:
        src -
        rcv -
        meanPlane -
        gPath -
        gS -
        Returns:
        the computed segment path
      • toCurve

        public static double toCurve​(double mn,
                                     double d)
        Eq.2.5.24 and Eq. 2.5.25
        Parameters:
        mn -
        d -
        Returns:
      • computeCnossosPathFromCutProfile

        public static CnossosPath computeCnossosPathFromCutProfile​(CutProfile cutProfile,
                                                                   boolean bodyBarrier,
                                                                   List<Double> exactFrequencyArray,
                                                                   double gS)
        Given the vertical cut profile (can be a single plane or multiple like a folding panel) return the ray path following Cnossos specification, or null if there is no valid path.
        Parameters:
        cutProfile - Vertical cut of a domain
        bodyBarrier -
        exactFrequencyArray - Expected frequencies
        gS - Ground factor of the source area
        Returns:
        The cnossos path or null