Class TrajectoryDataImpl

    • Constructor Detail

      • TrajectoryDataImpl

        public TrajectoryDataImpl()
    • Method Detail

      • add

        public void add​(java.lang.String monitorKey,
                        double pos,
                        double noise,
                        boolean valid)
        adds the noise - value to the data
        Parameters:
        monitorKey - the key of the monitor, which this noise-value refers to
        noise - the noise-value
        valid - true, if it is a correctly calculated value, false otherwise
      • getAverageRms

        public double getAverageRms​(java.util.List<Monitor> monitors)
        Parameters:
        monitors - the monitors for which to calculate the rms
        Returns:
        the average rms over the given monitors
      • getAverageRms

        public double getAverageRms()
        Specified by:
        getAverageRms in interface TrajectoryData
        Returns:
        the average noise over all the active monitors
      • getMeanValue

        public double getMeanValue​(Monitor monitor)
        Description copied from interface: TrajectoryData
        the mean position value for the given monitor
        Specified by:
        getMeanValue in interface TrajectoryData
        Parameters:
        monitor - the monitor for which to retrieve the value
        Returns:
        the mean position value
      • getRmsValue

        public double getRmsValue​(Monitor monitor)
        Specified by:
        getRmsValue in interface TrajectoryData
        Parameters:
        monitor - the monitor for which to return the noise
        Returns:
        the noise for the given monitor
      • getRmsValues

        public java.util.List<java.lang.Double> getRmsValues()
        Description copied from interface: TrajectoryData
        get the noise-values for the active monitors
        Specified by:
        getRmsValues in interface TrajectoryData
        Returns:
        all nois-values for the active monitors
      • getMeanValues

        public java.util.List<java.lang.Double> getMeanValues()
        Description copied from interface: TrajectoryData
        get all the position mean values for the active monitors
        Specified by:
        getMeanValues in interface TrajectoryData
        Returns:
        the position values
      • getValidityValues

        public java.util.List<java.lang.Boolean> getValidityValues()
        Specified by:
        getValidityValues in interface TrajectoryData
        Returns:
        a list of booleans, indicating if the data for the given monitor is valid, or not.
      • getMeanValues

        public java.util.List<java.lang.Double> getMeanValues​(Plane plane)
        Description copied from interface: TrajectoryData
        all the mean values for monitors of the given plane
        Specified by:
        getMeanValues in interface TrajectoryData
        Parameters:
        plane - the plane for which to get the mean values
        Returns:
        the mean values
      • getRmsValues

        public java.util.List<java.lang.Double> getRmsValues​(Plane plane)
        Description copied from interface: TrajectoryData
        the monitor rms-values for the given plane
        Specified by:
        getRmsValues in interface TrajectoryData
        Parameters:
        plane - the plane for which to retrieve the rms-values
        Returns:
        the rms values
      • getValidityValues

        public java.util.List<java.lang.Boolean> getValidityValues​(Plane plane)
        Specified by:
        getValidityValues in interface TrajectoryData
        Returns:
        the validity values for all active monitors in the given plane