Print

Print


Author: [log in to unmask]
Date: Fri Nov 20 21:13:08 2015
New Revision: 3971

Log:
changed parameter name from pedestal to intercept

Modified:
    java/trunk/users/src/main/java/org/hps/users/baltzell/RfFitFunction.java

Modified: java/trunk/users/src/main/java/org/hps/users/baltzell/RfFitFunction.java
 =============================================================================
--- java/trunk/users/src/main/java/org/hps/users/baltzell/RfFitFunction.java	(original)
+++ java/trunk/users/src/main/java/org/hps/users/baltzell/RfFitFunction.java	Fri Nov 20 21:13:08 2015
@@ -6,7 +6,7 @@
  * Function for fitting the leading edge of the RF waveform.
  */
 public class RfFitFunction extends AbstractIFunction {
-	protected double pedestal=0;
+	protected double intercept=0;
 	protected double time=0;
 	protected double slope=0;
 	public RfFitFunction() {
@@ -15,21 +15,21 @@
 	public RfFitFunction(String title) {
 		super();
 		this.variableNames=new String[]{"time"};
-		this.parameterNames=new String[]{"pedestal","time","slope"};
+		this.parameterNames=new String[]{"intercept","time","slope"};
 		init(title);
 	}
 	public double value(double [] v) {
-		return  pedestal + (v[0]-time)*slope;
+		return  intercept + (v[0]-time)*slope;
 	}
 	public void setParameters(double[] pars) throws IllegalArgumentException {
 		super.setParameters(pars);
-		pedestal=pars[0];
+		intercept=pars[0];
 		time=pars[1];
 		slope=pars[2];
 	}
 	public void setParameter(String key,double value) throws IllegalArgumentException{
 		super.setParameter(key,value);
-		if      (key.equals("pedestal")) pedestal=value;
+		if      (key.equals("intercept")) intercept=value;
 		else if (key.equals("time"))     time=value;
 		else if (key.equals("slope"))    slope=value;
 	}