hi
i am learning java programing
i dont know how to plot gnuplot
i have to do the following program
i have completed up to second point
now i have difficulty in plotting gnuplot from the data
so please send me information about this "GNUPLOT"
this is my question
In the theory of telecommunication networks, the probability that a call
offered to a group of *r* circuits finds that all *r* circuits are busy is
given by Erlang's Loss Formula:
r / r i
a / --- a
E(r,a) = --- / \ ---
r! / / i!
/ ---
i=0
where *a* is the traffic offered. However, the recursive formula:
1 r 1
----- = 1 + --- --------- r = 1, 2, 3, ...
E(r,a) a E(r-1,a)
with *E(0,a) = 1* offers a more efficient method of computing loss
probabilities.
- Write a Java program which takes the parameters *R* and *a* and
calculates *E(r,a), r = 1, 2, ... R*. Use the recursive version of
Erlang's loss formula. (45% of marks)
- Extend your program (25% of marks) to take the parameters *R, A* and
*L* be able to generate data for the functions *E(r,a), r = 1, 2, ...
R* in the range 0 <= *a* <= *A* and 10-*L* <= *E* <= 1. The horizontal
*a*-axis should have a linear scale. The vertical *E*-axis can be
linear but extra credit (5% of marks) will be given to those who wish to
make the vertical axis have a logarithmic scale.
- Use your program to generate data for
R = 20, A = 12, L = 3
- Write out the data into a file, and plot the file data using a
spreadsheet program or graphing package such as gnuplot.
thankin you
Gajjar hiren
|