Package jhd.MathTools

Class Interpolation

java.lang.Object
jhd.MathTools.Interpolation

public class Interpolation
extends java.lang.Object
Special purpose static functions
Author:
John H Dunsmuir
  • Constructor Summary

    Constructors
    Constructor Description
    Interpolation()  
  • Method Summary

    Modifier and Type Method Description
    static double linTerp​(double meV1, double meV2, double newMeV, double muMass1, double muMass2)  
    static double logTerp​(double meV1, double meV2, double newMeV, double muMass1, double muMass2)  

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Interpolation

      public Interpolation()
  • Method Details

    • logTerp

      public static double logTerp​(double meV1, double meV2, double newMeV, double muMass1, double muMass2)
      Parameters:
      meV1 - value less than newMev
      meV2 - value greater than newMev
      newMeV - value for which newMuMass is sought
      muMass1 - value at mev1
      muMass2 - value at mev2
      Returns:
      the log-log interpolated newMuMass
    • linTerp

      public static double linTerp​(double meV1, double meV2, double newMeV, double muMass1, double muMass2)
      Parameters:
      meV1 - value less than newMev
      meV2 - value greater than newMev
      newMeV - value for which newMuMass is sought
      muMass1 - value at mev1
      muMass2 - value at mev2
      Returns:
      the linearly interpolated newMuMass