ARB
Public Member Functions | List of all members
PrefixProbabilities Class Reference

#include <PT_partition.h>

Public Member Functions

 PrefixProbabilities (int depth_)
 
 PrefixProbabilities (const PrefixProbabilities &other)
 
 DECLARE_ASSIGNMENT_OPERATOR (PrefixProbabilities)
 
 ~PrefixProbabilities ()
 
int get_prefix_count () const
 
int get_depth () const
 
double left_of (int prefix_idx) const
 
double of_range (int first_idx, int last_idx) const
 
double of (int prefix_idx)
 
int find_index_near_leftsum (double wanted) const
 

Detailed Description

Definition at line 83 of file PT_partition.h.

Constructor & Destructor Documentation

PrefixProbabilities::PrefixProbabilities ( int  depth_)
inline
PrefixProbabilities::PrefixProbabilities ( const PrefixProbabilities other)
inline

Definition at line 109 of file PT_partition.h.

PrefixProbabilities::~PrefixProbabilities ( )
inline

Definition at line 117 of file PT_partition.h.

Member Function Documentation

PrefixProbabilities::DECLARE_ASSIGNMENT_OPERATOR ( PrefixProbabilities  )
int PrefixProbabilities::get_prefix_count ( ) const
inline

Definition at line 119 of file PT_partition.h.

Referenced by decide_passes_to_use(), and Partition::max_allowed_passes().

int PrefixProbabilities::get_depth ( ) const
inline

Definition at line 120 of file PT_partition.h.

Referenced by Partition::split_depth().

double PrefixProbabilities::left_of ( int  prefix_idx) const
inline

Definition at line 122 of file PT_partition.h.

References pt_assert.

Referenced by find_index_near_leftsum(), and of_range().

double PrefixProbabilities::of_range ( int  first_idx,
int  last_idx 
) const
inline

Definition at line 126 of file PT_partition.h.

References left_of(), and pt_assert.

Referenced by of(), and Partition::pass_probability().

double PrefixProbabilities::of ( int  prefix_idx)
inline

Definition at line 132 of file PT_partition.h.

References of_range(), and pt_assert.

int PrefixProbabilities::find_index_near_leftsum ( double  wanted) const
inline

Definition at line 137 of file PT_partition.h.

References left_of(), mid(), and pt_assert.


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