pt.tumba.ngram.bayes
Class Bucket

java.lang.Object
  extended by pt.tumba.ngram.bayes.Bucket

 class Bucket
extends java.lang.Object


Field Summary
(package private)  DiscreteFunction backward_pointers
           
(package private)  int bucket_status
           
(package private)  BucketTree bucket_tree
           
(package private)  Bucket child
           
(package private)  DiscreteFunction cluster
           
(package private)  java.util.Vector discrete_functions
           
(package private) static int DISTRIBUTED
           
(package private)  boolean do_produce_clusters
           
(package private) static int EMPTY
           
private  boolean is_ordered_dfs_ready
           
(package private)  java.util.Vector non_conditioning_variables
           
private  DiscreteFunction[] ordered_dfs
           
(package private)  java.util.Vector parents
           
(package private) static int REDUCED
           
(package private)  DiscreteFunction separator
           
(package private)  ProbabilityVariable variable
           
 
Constructor Summary
Bucket(BucketTree bs, ProbabilityVariable pv)
           
Bucket(BucketTree bs, ProbabilityVariable pv, boolean dpc)
           
 
Method Summary
private  DiscreteFunction build_new_function(boolean is_bucket_variable_included)
           
private  void build_new_variables(DiscreteFunction new_df, int[] joined_indexes, boolean is_bucket_variable_included, int n)
           
(package private)  DiscreteFunction combine()
           
private  void create_backward_pointers(DiscreteFunction new_df)
           
(package private)  boolean is_explanation()
           
private  int join_indexes(boolean[] variable_markers)
           
private  void max_out(DiscreteFunction new_df)
           
private  void order_dfs()
           
(package private)  void print()
           
(package private)  void print(java.io.PrintStream out)
           
(package private)  void reduce_cluster()
           
(package private)  void reduce()
           
private  void sum_out(DiscreteFunction new_df)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bucket_tree

BucketTree bucket_tree

variable

ProbabilityVariable variable

discrete_functions

java.util.Vector discrete_functions

backward_pointers

DiscreteFunction backward_pointers

separator

DiscreteFunction separator

do_produce_clusters

boolean do_produce_clusters

cluster

DiscreteFunction cluster

non_conditioning_variables

java.util.Vector non_conditioning_variables

parents

java.util.Vector parents

child

Bucket child

bucket_status

int bucket_status

ordered_dfs

private DiscreteFunction[] ordered_dfs

is_ordered_dfs_ready

private boolean is_ordered_dfs_ready

EMPTY

static final int EMPTY
See Also:
Constant Field Values

REDUCED

static final int REDUCED
See Also:
Constant Field Values

DISTRIBUTED

static final int DISTRIBUTED
See Also:
Constant Field Values
Constructor Detail

Bucket

Bucket(BucketTree bs,
       ProbabilityVariable pv)

Bucket

Bucket(BucketTree bs,
       ProbabilityVariable pv,
       boolean dpc)
Method Detail

print

void print()

print

void print(java.io.PrintStream out)

reduce

void reduce()

combine

DiscreteFunction combine()

reduce_cluster

void reduce_cluster()

is_explanation

boolean is_explanation()

order_dfs

private void order_dfs()

join_indexes

private int join_indexes(boolean[] variable_markers)

build_new_function

private DiscreteFunction build_new_function(boolean is_bucket_variable_included)

build_new_variables

private void build_new_variables(DiscreteFunction new_df,
                                 int[] joined_indexes,
                                 boolean is_bucket_variable_included,
                                 int n)

sum_out

private void sum_out(DiscreteFunction new_df)

max_out

private void max_out(DiscreteFunction new_df)

create_backward_pointers

private void create_backward_pointers(DiscreteFunction new_df)