spis.Surf.InteractModel
Class DiscretisedFunctionOfParticleEDeprecated

java.lang.Object
  extended byspis.Surf.InteractModel.DiscretisedFunctionOfParticleEDeprecated

public class DiscretisedFunctionOfParticleEDeprecated
extends java.lang.Object

Class Name : DiscretisedFunctionOfParticleEDeprecated
Project ref : SPIS project
File name : DiscretisedFunctionOfParticleEDeprecated.java
File type : class
Copyright : ONERA, 2 Av. E. Belin, 31055 Toulouse cedex, France http://www.onecert.fr
Status : under development
Creation : 25/08/2003
Modification :

Description : Default Microscopic Yield versus Energy
A tabulated Yield(Energy) function is stored and allows to compute the yield.

Versions and anomalies correction :

Version numberAuthor (name, e-mail) Corrections/Modifications
0.1 JF Roussel, roussel@onecert.frCreation


Version:
0.1
Author:
JF Roussel

Field Summary
private  float[] energy
          Energy steps
private  float[] yield
          Yield for each energy
 
Constructor Summary
DiscretisedFunctionOfParticleEDeprecated(float[] energies, float[] yields)
          Default constructor.
 
Method Summary
 float compute(float E)
          Computes the yield as a function of Energy, based on the yield table
The yield is linearly interpolated between provided values
If the energy is out of the energy interval of the table, the first or last value is returned
Simple iterative method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

energy

private float[] energy
Energy steps


yield

private float[] yield
Yield for each energy

Constructor Detail

DiscretisedFunctionOfParticleEDeprecated

public DiscretisedFunctionOfParticleEDeprecated(float[] energies,
                                                float[] yields)
Default constructor.
The table of energies and yields passed must verify the following:
- energies and yield tables must be of the same dimension
- they must be completely filled (all values will be used)
- energies must ne in (strictly) increasing order
- the first energy should be zero

Parameters:
energies - [eV]
yields - [-]
Method Detail

compute

public float compute(float E)
Computes the yield as a function of Energy, based on the yield table
The yield is linearly interpolated between provided values
If the energy is out of the energy interval of the table, the first or last value is returned
Simple iterative method. If large tables are provided, a much more efficient dichotomic method should be implemented.