org.das2.qds.demos.PlasmaModel
Model of plasma distribution function for given density, temperature, speed.
A java.util.Random object is passed in so that the data may be reproducible
(by using a given starting seed).
PlasmaModel( )
counts
counts( Datum energy, java.util.Random random ) → int
return the counts at this energy, assuming an isotropic distribution, and
Poisson noise is added to the result.
Parameters
energy - in eV
random - source of random numbers.
Returns:
an int
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
counts( Datum energy, Datum pitch, java.util.Random random ) → int
f
f( Datum energy ) → double
return f at the given energy
Parameters
energy - a Datum
Returns:
a double
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
f( Datum energy, Datum pitchAngle ) → double
fcounts
fcounts( Datum energy ) → double
return the counts at this energy, assuming an isotropic distribution. No
Poisson noise is added to the output.
Parameters
energy - a Datum
Returns:
a double
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
fcounts( Datum energy, Datum pitch ) → double
getDensity
getDensity( ) → Datum
get the model density
Returns:
a Datum
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getGeomFactor
getGeomFactor( ) → Datum
get the detector geometry factor
Returns:
the detector geometry factor
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getRank2
getRank2( ) → QDataSet
return a rank 2 dataset with time as DEPEND_0 and energy as DEPEND_1.
Returns:
a QDataSet
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getRank3
getRank3( ) → QDataSet
return a rank 2 dataset with time as DEPEND_0 and energy as DEPEND_1.
Returns:
a QDataSet
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getWcParl
getWcParl( ) → Datum
get the parallel speed.
Returns:
a Datum
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getWcPerp
getWcPerp( ) → Datum
get the perpendicular speed
Returns:
the perpendicular speed
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
setDensity
setDensity( Datum density ) → void
set the model density
Parameters
density - a Datum
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
setGeomFactor
setGeomFactor( Datum geom ) → void
set the detector geometry factor
Parameters
geom - the detector geometry factor
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
setWcPerp
setWcPerp( Datum wcperp ) → void
set the perpendicular speed
Parameters
wcperp - perpendicular speed
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
setWcparl
setWcparl( Datum wcparl ) → void
set the parallel speed
Parameters
wcparl - a Datum
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]