Public Member Functions | Private Attributes
fhs_arc Class Reference

Link between one node and another. More...

#include <fhs_arc.h>

List of all members.

Public Member Functions

 fhs_arc ()
 Default constructor.
 fhs_arc (int i, int j, double dx, double dy, double var_x, double var_y)
 Constructor.
fhs_arc flipped () const
 Return arc from j to i (ie directions reversed).
unsigned i () const
 Index of first node.
unsigned j () const
 Index of second node.
double dx () const
 Mean x offset of j() from i().
double dy () const
 Mean y offset of j() from i().
double var_x () const
 Variance of x offset of j() from i().
double var_y () const
 Variance of y offset of j() from i().
void b_write (vsl_b_ostream &bfs) const
 Write to binary stream.
void b_read (vsl_b_istream &bfs)
 Read from binary stream.

Private Attributes

unsigned i_
unsigned j_
double dx_
double dy_
double var_x_
double var_y_

Detailed Description

Link between one node and another.

Indicates that position of node j, p(j) = p(i) + (N(dx,var_x),N(dy,var_y)) where N(m,var) is a gaussian with mean m and variance var

Definition at line 16 of file fhs_arc.h.


Constructor & Destructor Documentation

fhs_arc::fhs_arc ( ) [inline]

Default constructor.

Definition at line 27 of file fhs_arc.h.

fhs_arc::fhs_arc ( int  i,
int  j,
double  dx,
double  dy,
double  var_x,
double  var_y 
) [inline]

Constructor.

Definition at line 31 of file fhs_arc.h.


Member Function Documentation

void fhs_arc::b_read ( vsl_b_istream bfs)

Read from binary stream.

Definition at line 21 of file fhs_arc.cxx.

void fhs_arc::b_write ( vsl_b_ostream bfs) const

Write to binary stream.

Definition at line 10 of file fhs_arc.cxx.

double fhs_arc::dx ( ) const [inline]

Mean x offset of j() from i().

Definition at line 45 of file fhs_arc.h.

double fhs_arc::dy ( ) const [inline]

Mean y offset of j() from i().

Definition at line 48 of file fhs_arc.h.

fhs_arc fhs_arc::flipped ( ) const [inline]

Return arc from j to i (ie directions reversed).

Definition at line 35 of file fhs_arc.h.

unsigned fhs_arc::i ( ) const [inline]

Index of first node.

Definition at line 39 of file fhs_arc.h.

unsigned fhs_arc::j ( ) const [inline]

Index of second node.

Definition at line 42 of file fhs_arc.h.

double fhs_arc::var_x ( ) const [inline]

Variance of x offset of j() from i().

Definition at line 51 of file fhs_arc.h.

double fhs_arc::var_y ( ) const [inline]

Variance of y offset of j() from i().

Definition at line 54 of file fhs_arc.h.


Member Data Documentation

double fhs_arc::dx_ [private]

Definition at line 21 of file fhs_arc.h.

double fhs_arc::dy_ [private]

Definition at line 22 of file fhs_arc.h.

unsigned fhs_arc::i_ [private]

Definition at line 19 of file fhs_arc.h.

unsigned fhs_arc::j_ [private]

Definition at line 20 of file fhs_arc.h.

double fhs_arc::var_x_ [private]

Definition at line 23 of file fhs_arc.h.

double fhs_arc::var_y_ [private]

Definition at line 24 of file fhs_arc.h.


The documentation for this class was generated from the following files: