diff liboctave/oct-rand.h @ 5730:109fdf7b3dcb

[project @ 2006-04-03 19:18:26 by jwe]
author jwe
date Mon, 03 Apr 2006 19:18:26 +0000
parents 4c8a2e4e0717
children 143b556ce725
line wrap: on
line diff
--- a/liboctave/oct-rand.h	Mon Apr 03 19:03:31 2006 +0000
+++ b/liboctave/oct-rand.h	Mon Apr 03 19:18:26 2006 +0000
@@ -26,6 +26,7 @@
 
 #include <string>
 
+#include "dColVector.h"
 #include "dMatrix.h"
 #include "dNDArray.h"
 
@@ -38,6 +39,12 @@
   // Set the seed.
   static void seed (double s);
 
+  // Return the current state.
+  static ColumnVector state (void);
+
+  // Set the current state/
+  static void state (const ColumnVector &s);
+  
   // Return the current distribution.
   static std::string distribution (void);
 
@@ -49,19 +56,25 @@
 
   static void normal_distribution (void);
 
+  static void exponential_distribution (void);
+
+  static void poisson_distribution (void);
+
+  static void gamma_distribution (void);
+
   // Return the next number from the sequence.
-  static double scalar (void);
+  static double scalar (double a = 1.);
 
   // Return a matrix of numbers from the sequence, filled in column
   // major order.
-  static Matrix matrix (octave_idx_type r, octave_idx_type c);
+  static Matrix matrix (octave_idx_type r, octave_idx_type c, double a = 1.);
 
   // Return an N-dimensional array of numbers from the sequence,
   // filled in column major order.
-  static NDArray nd_array (const dim_vector& dims);
+  static NDArray nd_array (const dim_vector& dims, double a = 1.);
 
   // Return an array of numbers from the sequence.
-  static Array<double> vector (octave_idx_type n);
+  static Array<double> vector (octave_idx_type n, double a = 1.);
 };
 
 #endif