10 More Discussions You Might Find Interesting
1. Solaris
Hi all,
Is there anyway i can control the naming of the disk device ?
I have added an iscsi disk on server1 using iscsiadm , devfsadm and it is now showing as
/dev/dsk/c2t0d0 in node1
However, i am worried that the same disk will appear as
/dev/dsk/cXtXd0 in node2
This iscsi disk(lun)... (0 Replies)
Discussion started by: javanoob
0 Replies
2. AIX
is there any way to create shared virtual disk between two LPARs like how you can do it using Storage through Fiber on two servers ?
Trying to stimulate HACMP between two LPARs (1 Reply)
Discussion started by: filosophizer
1 Replies
3. Programming
Hello.
I am new to this forum and I would like to ask for advice about low level POSIX programming.
I have to implement a POSIX compliant C shared library.
A file will have some variables and the shared library will have some functions which need those variables.
There is one special... (5 Replies)
Discussion started by: iamjag
5 Replies
4. HP-UX
Hello people.
I need to shared a disk between two virtuals hosts in the same Guest, and I don't see any help about this.
I'm working on HP-UX 11.31
Thanks to all.:b: (2 Replies)
Discussion started by: cegamboav
2 Replies
5. AIX
Hi
I'm a little rusty with HACMP, but wanted to find out if it is possible to remove a disk heartbeat network from a running HACMP cluster.
Reason is, I need to migrate all the SAN disk, so the current heartbeat disk will be disappearing. Ideally, I'd like to avoid taking the cluster down to... (2 Replies)
Discussion started by: cmcbugg
2 Replies
6. AIX
hi,
when I do a failover, hacmp always starts db2 but recently it fails to start db2..noticed the issue is db2nodes.cfg is not modified by hacmp and is still showing primary node..manually changed the node name to secondary after which db2 started immediately..unable to figure out why hacmp is... (4 Replies)
Discussion started by: gkr747
4 Replies
7. Programming
Hi,
I'm just start to learning simulate a network protocol using C/C++ and Java from scratch.
Actually, I want to make two nodes can communicate using TCP and UDP protocol, for example http connection and video streaming, respectively.
Can anyone help me find several references or guidance... (0 Replies)
Discussion started by: nica
0 Replies
8. AIX
Hi all,
I have an HACMP (v5.3.0.0) cluster vg attached to ibm shark that need to be decommissioned. The data need to move to the HP EVA disk. The OS is on AIX 5200-10. The plan is to add a new disk from EVA & mirror the existing vg & break the mirror from Shark disk once the mirror finished.
... (12 Replies)
Discussion started by: CW15
12 Replies
9. Programming
I am writing a shared library in Linux (but compatible with other UNIXes) and I want to allow multiple instances to share a piece of memory -- 1 byte is enough. What's the "best" way to do this? I want to optimize for speed and portability.
Obviously, I'll have to worry about mutual exclusion. (0 Replies)
Discussion started by: otheus
0 Replies
10. Programming
I need to create a shared library to access an in memory DB. The DB is not huge, but big enough to make it cumbersome to carry around in every single process using the shared library. Luckily, it is pretty static information, so I don't need to worry much about synchronizing the data between... (12 Replies)
Discussion started by: DreamWarrior
12 Replies
simulation::random(n) Tcl Simulation Tools simulation::random(n)
__________________________________________________________________________________________________________________________________________________
NAME
simulation::random - Pseudo-random number generators
SYNOPSIS
package require Tcl ?8.4?
package require simulation::random 0.1
::simulation::random::prng_Bernoulli p
::simulation::random::prng_Discrete n
::simulation::random::prng_Poisson lambda
::simulation::random::prng_Uniform min max
::simulation::random::prng_Exponential min mean
::simulation::random::prng_Normal mean stdev
::simulation::random::prng_Pareto min steep
::simulation::random::prng_Gumbel min f
::simulation::random::prng_chiSquared df
::simulation::random::prng_Disk rad
::simulation::random::prng_Sphere rad
::simulation::random::prng_Ball rad
::simulation::random::prng_Rectangle length width
::simulation::random::prng_Block length width depth
_________________________________________________________________
DESCRIPTION
This package consists of commands to generate pseudo-random number generators. These new commands deliver
o numbers that are distributed normally, uniformly, according to a Pareto or Gumbel distribution and so on
o coordinates of points uniformly spread inside a sphere or a rectangle
For example:
set p [::simulation::random::prng_Normal -1.0 10.0]
produces a new command (whose name is stored in the variable "p") that generates normally distributed numbers with a mean of -1.0 and a
standard deviation of 10.0.
PROCEDURES
The package defines the following public procedures for discrete distributions:
::simulation::random::prng_Bernoulli p
Create a command (PRNG) that generates numbers with a Bernoulli distribution: the value is either 1 or 0, with a chance p to be 1
float p
Chance the outcome is 1
::simulation::random::prng_Discrete n
Create a command (PRNG) that generates numbers 0 to n-1 with equal probability.
int n Number of different values (ranging from 0 to n-1)
::simulation::random::prng_Poisson lambda
Create a command (PRNG) that generates numbers according to the Poisson distribution.
float lambda
Mean number per time interval
The package defines the following public procedures for continuous distributions:
::simulation::random::prng_Uniform min max
Create a command (PRNG) that generates uniformly distributed numbers between "min" and "max".
float min
Minimum number that will be generated
float max
Maximum number that will be generated
::simulation::random::prng_Exponential min mean
Create a command (PRNG) that generates exponentially distributed numbers with a given minimum value and a given mean value.
float min
Minimum number that will be generated
float mean
Mean value for the numbers
::simulation::random::prng_Normal mean stdev
Create a command (PRNG) that generates normally distributed numbers with a given mean value and a given standard deviation.
float mean
Mean value for the numbers
float stdev
Standard deviation
::simulation::random::prng_Pareto min steep
Create a command (PRNG) that generates numbers distributed according to Pareto with a given minimum value and a given distribution
steepness.
float min
Minimum number that will be generated
float steep
Steepness of the distribution
::simulation::random::prng_Gumbel min f
Create a command (PRNG) that generates numbers distributed according to Gumbel with a given minimum value and a given scale factor.
The probability density function is:
P(v) = exp( -exp(f*(v-min)))
float min
Minimum number that will be generated
float f
Scale factor for the values
::simulation::random::prng_chiSquared df
Create a command (PRNG) that generates numbers distributed according to the chi-squared distribution with df degrees of freedom. The
mean is 0 and the standard deviation is 1.
float df
Degrees of freedom
The package defines the following public procedures for random point sets:
::simulation::random::prng_Disk rad
Create a command (PRNG) that generates (x,y)-coordinates for points uniformly spread over a disk of given radius.
float rad
Radius of the disk
::simulation::random::prng_Sphere rad
Create a command (PRNG) that generates (x,y,z)-coordinates for points uniformly spread over the surface of a sphere of given radius.
float rad
Radius of the disk
::simulation::random::prng_Ball rad
Create a command (PRNG) that generates (x,y,z)-coordinates for points uniformly spread within a ball of given radius.
float rad
Radius of the ball
::simulation::random::prng_Rectangle length width
Create a command (PRNG) that generates (x,y)-coordinates for points uniformly spread over a rectangle.
float length
Length of the rectangle (x-direction)
float width
Width of the rectangle (y-direction)
::simulation::random::prng_Block length width depth
Create a command (PRNG) that generates (x,y)-coordinates for points uniformly spread over a block
float length
Length of the block (x-direction)
float width
Width of the block (y-direction)
float depth
Depth of the block (z-direction)
KEYWORDS
math, random numbers, simulation, statistical distribution
COPYRIGHT
Copyright (c) 2004 Arjen Markus <arjenmarkus@users.sourceforge.net>
simulation 0.1 simulation::random(n)