i will give you an example with 5 items(numbers)
Before sort : array = [ 1,3 4,7 0,23 5,78 1,26]
after sort : array = [ 0,23 1,26 1,3 4,7 5,86]
i need an additional array that will be : J = [ 3 5 1 2 4]
the location of the items(of the sorted array) in the array before the sorting..
The...
If i have an array of let's say 1.000.000 elements. With subroutine SORTQQ i can sort the array in 0.2 sec while with other subroutines(not built in) it takes about 15 minutes. The problem is that i need to have an array with the initial location of the elements of the array.
Is there any way...
I would like to ask how can a create a random number generator sampling from the binomial distribution. The easiest way. For example a random number X~B(1,p)
Thank you!
I will have to loop the same number of times as there are columns in my data matrix. If i had one random variable (1 row) and 5 values for that random variable (5 columns) i would loop 5 times and i would find 5 displacements.
In every loop i have to pass the values of the respective column to...
Thank you my friend!
The difficult part is that i must do that so many times as the number of columns of the input data..For example, if i have in the text file the data of a matrix 2x3 it means that i have to run the analysis(put the values of the 2 variables in ) 3 times, and get 3 values...
Thank you my friend!I changer the spaces with commas in the txt file so it will not be necessary to do that in the code.
The first column is not the name of the variables it's their first values...So i do need the first column.
Here is the code i use in opensees :
It calculates the...
Let me explain you my project..
Let'say that y=var1*var2*var3..*var100
where var1,var2...var100 are random variables.(The take different values every time)
I have (let'say) 100 random variables. For each one of them i create 100 samples( i give them 100 different values).
variables samples...
Greetings to you all! It is the first time i use Tcl and i would like your assistance immediately. It might sounds easy for you ,but for me, who i have no experience at all is quite a trouble. I need to do this :
I have a file of inputs. (a matrix 100X100 saved from Matlab..in txt form)
I want...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.