Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

one_d_hat Class Reference

This class is a hat function energy distribution, and is used for debugging. More...

Inheritance diagram for one_d_hat:

Inheritance graph
[legend]
Collaboration diagram for one_d_hat:

Collaboration graph
[legend]
List of all members.

Public Member Functions

double f (double E_out)
 one_d_hat ()
 ~one_d_hat ()
void initiate (double left_end, double top, double right_end)
 Sets up the parameters and makes the list.

void list_interp (double e_in, one_d_hat &left_list, one_d_hat &right_list)
 Performs the interpolation.


Private Attributes

double left_scale
double top_scale
double right_scale

Detailed Description

Class that generates triangular probability functions. It is used solely for debugging purposes.

Definition at line 270 of file distrib_1d.hpp.


Constructor & Destructor Documentation

one_d_hat::one_d_hat  )  [inline]
 

Empty constructor.

Definition at line 283 of file distrib_1d.hpp.

one_d_hat::~one_d_hat  )  [inline]
 

Empty destructor.

Definition at line 284 of file distrib_1d.hpp.


Member Function Documentation

double one_d_hat::f double  E_out  )  [virtual]
 

Parameters:
E_out the outgoing energy at which to evaluate the hat function.
Calculate the value of the triangular distribution at the stated energy.

Implements distrib_base.

Definition at line 1295 of file distrib_1d.cpp.

References left_scale, right_scale, and top_scale.

void one_d_hat::initiate double  left_end,
double  top,
double  right_end
 

Parameters:
left_end the position of the left edge of the triangle
top the position of the top of the triangle
right_end the position of the right edge of the triangle
Generates a hat shaped (traingular) energy distribution.

Definition at line 1312 of file distrib_1d.cpp.

References left_scale, dd_list::max_E_out, dd_list::min_E_out, distrib_base::renorm(), SevereError(), and top_scale.

one_d_hat::list_interp double  e_in,
one_d_hat left_list,
one_d_hat right_list
[inline]
 

Parameters:
e_in the incident energy to which we want to interpolate to
left_list a list above the one we wish to interpolate to
right_list a list below the one we wish to interpolate to
Interpolates a list at e_in between the given left and right lists.

Definition at line 290 of file distrib_1d.hpp.

References SevereError().


Member Data Documentation

double one_d_hat::left_scale [private]
 

Definition at line 275 of file distrib_1d.hpp.

Referenced by f(), and initiate().

double one_d_hat::right_scale [private]
 

Definition at line 277 of file distrib_1d.hpp.

Referenced by f().

double one_d_hat::top_scale [private]
 

Definition at line 276 of file distrib_1d.hpp.

Referenced by f(), and initiate().


Generated on Thu Sep 7 10:43:48 2006 for fete -- From ENDFB6 To ENDL by doxygen 1.3.4