Public Member Functions | Private Types | Private Member Functions | Private Attributes
ON_Sum Class Reference

#include <opennurbs_math.h>

List of all members.

Public Member Functions

void Begin (double starting_value=0.0)
 ON_Sum ()
void operator+= (double x)
void operator-= (double x)
void operator= (double x)
void Plus (double x)
int SummandCount () const
double Total (double *error_estimate=NULL)

Private Types

enum  { sum1_max_count = 256, sum2_max_count = 512, sum3_max_count = 1024 }

Private Member Functions

double SortAndSum (int, double *)

Private Attributes

int m_neg_count
double m_neg_sum
double m_neg_sum1 [sum1_max_count]
int m_neg_sum1_count
double m_neg_sum2 [sum2_max_count]
int m_neg_sum2_count
double m_neg_sum3 [sum3_max_count]
int m_neg_sum3_count
int m_pos_count
double m_pos_sum
double m_pos_sum1 [sum1_max_count]
int m_pos_sum1_count
double m_pos_sum2 [sum2_max_count]
int m_pos_sum2_count
double m_pos_sum3 [sum3_max_count]
int m_pos_sum3_count
double m_sum_err
int m_zero_count

Detailed Description

Definition at line 30 of file opennurbs_math.h.


Member Enumeration Documentation

anonymous enum [private]
Enumerator:
sum1_max_count 
sum2_max_count 
sum3_max_count 

Definition at line 97 of file opennurbs_math.h.


Constructor & Destructor Documentation

Definition at line 19 of file opennurbs_sum.cpp.


Member Function Documentation

void ON_Sum::Begin ( double  starting_value = 0.0)

Definition at line 29 of file opennurbs_sum.cpp.

void ON_Sum::operator+= ( double  x)

Definition at line 140 of file opennurbs_sum.cpp.

void ON_Sum::operator-= ( double  x)

Definition at line 145 of file opennurbs_sum.cpp.

void ON_Sum::operator= ( double  x)

Definition at line 135 of file opennurbs_sum.cpp.

void ON_Sum::Plus ( double  x)

Definition at line 83 of file opennurbs_sum.cpp.

double ON_Sum::SortAndSum ( int  count,
double *  a 
) [private]

Definition at line 54 of file opennurbs_sum.cpp.

int ON_Sum::SummandCount ( ) const

Definition at line 24 of file opennurbs_sum.cpp.

double ON_Sum::Total ( double *  error_estimate = NULL)

Definition at line 152 of file opennurbs_sum.cpp.


Member Data Documentation

int ON_Sum::m_neg_count [private]

Definition at line 108 of file opennurbs_math.h.

double ON_Sum::m_neg_sum [private]

Definition at line 104 of file opennurbs_math.h.

Definition at line 120 of file opennurbs_math.h.

int ON_Sum::m_neg_sum1_count [private]

Definition at line 117 of file opennurbs_math.h.

Definition at line 121 of file opennurbs_math.h.

int ON_Sum::m_neg_sum2_count [private]

Definition at line 118 of file opennurbs_math.h.

Definition at line 122 of file opennurbs_math.h.

int ON_Sum::m_neg_sum3_count [private]

Definition at line 119 of file opennurbs_math.h.

int ON_Sum::m_pos_count [private]

Definition at line 107 of file opennurbs_math.h.

double ON_Sum::m_pos_sum [private]

Definition at line 103 of file opennurbs_math.h.

Definition at line 113 of file opennurbs_math.h.

int ON_Sum::m_pos_sum1_count [private]

Definition at line 110 of file opennurbs_math.h.

Definition at line 114 of file opennurbs_math.h.

int ON_Sum::m_pos_sum2_count [private]

Definition at line 111 of file opennurbs_math.h.

Definition at line 115 of file opennurbs_math.h.

int ON_Sum::m_pos_sum3_count [private]

Definition at line 112 of file opennurbs_math.h.

double ON_Sum::m_sum_err [private]

Definition at line 102 of file opennurbs_math.h.

int ON_Sum::m_zero_count [private]

Definition at line 106 of file opennurbs_math.h.


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


pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:38:52