Recent content by sue132
-
S
Learn How to Calculate SNR for Vector A in Time Series | Tips & Tricks
Hi, I have a vector 'A' of length 'n', whose values change with time. 'A' gives the change from a baseline 'B'. I calculate a signal as the distance A from the average of B, i.e., If 'B' is my baseline, then the signal at a time 't' due to A(t) would be given by S=(1/n)*(Ʃ1Ai -<B> - Ʃ2Ai...- sue132
- Thread
- Calculation Snr
- Replies: 1
- Forum: Programming and Computer Science
-
S
Fortran Creating a distribution with specific mean and variance in FORTRAN 90
Thank you for the replies- sue132
- Post #4
- Forum: Programming and Computer Science
-
S
Fortran Creating a distribution with specific mean and variance in FORTRAN 90
Hi, I'm trying to create a normal distribution with mean 0.5 and variance 0.05. I tried it initially with MATLAB, for which I used newdist=0.5+(randn(1,1000)*sqrt(0.05)); Could you please help me in doing this in FORTRAN 90? Would generating a sequence using RANDOM_NUMBER and using the...- sue132
- Thread
- Distribution Fortran Mean Specific Variance
- Replies: 3
- Forum: Programming and Computer Science
-
S
Calculating Nth Root of Vector: Non-Integer Solutions
Thanks for the reply, Chiro. What I meant was : if I have a column vector, say v, of length n, then how do I go about calculating v^(1/2) or v(-1/2)? I should be able to get a vector, say x=v^1/2 such that I get v back when I do x*x. Is this right? If v is a column vector of dimension nX1...- sue132
- Post #3
- Forum: Precalculus Mathematics Homework Help
-
S
Calculating Nth Root of Vector: Non-Integer Solutions
Could someone please explain how to calculate the nth root of a vector, where n is not an integer?- sue132
- Thread
- Root Vector
- Replies: 3
- Forum: Precalculus Mathematics Homework Help
-
S
Fortran Need some help with dynamic memory allocation in Fortran
Thanks for the reply, gsal. I need the array to be allocatable, as my array size is ultimately pXn, but not throughout the program. My array starts with a 1Xn row vector and at each step, another row is added. Hence, it needs to be allocatable. And, I'm not discarding the entire array - I...- sue132
- Post #6
- Forum: Programming and Computer Science
-
S
Fortran Need some help with dynamic memory allocation in Fortran
Thanks a lot. I've tried to include enough comments to make the code clear, hope it makes some sense. The current program is giving me a segmentation fault error, which I'm trying to rectify now. ! Program to generate a matrix whose rows are linearly independent vectors. ! The...- sue132
- Post #3
- Forum: Programming and Computer Science
-
S
Fortran Need some help with dynamic memory allocation in Fortran
Hi, I need some help with allocating arrays dynamically. I have an array whose size keeps changing at each step - I start with a row vector and add another row vector at each step of a cycle. I need to use this new array for further calculations. I've been trying to declare the arrays...- sue132
- Thread
- Dynamic Fortran Memory
- Replies: 5
- Forum: Programming and Computer Science
-
S
Fortran Help with Fortran: Generating Random Vectors w/ Binary Values
I figured it out. Thanks- sue132
- Post #8
- Forum: Programming and Computer Science
-
S
Fortran Help with Fortran: Generating Random Vectors w/ Binary Values
I'm using -1's as they are more convenient than zeros for my further calculations. I have been trying to do that. As I generate each vector, I'm checking its projection with the previous vectors. If it's in the same direction as any of those, then I get a projection value of 0, and hence it...- sue132
- Post #7
- Forum: Programming and Computer Science
-
S
Fortran Fortran 77 help making an empty array (or blank list if they exist in fortran)
If you're going to use it to store numbers, then maybe you could make it an array of 0's. You could probably define an array of some large dimension, and then when you get the limits (4-10, in your example) from the user, you could calculate the difference between them and make a zeros array of...- sue132
- Post #6
- Forum: Programming and Computer Science
-
S
Fortran Help with Fortran: Generating Random Vectors w/ Binary Values
So, if I have 10 as my vector length, I should be able to get at least 9 linearly independent vectors, right? I'm currently using +1's and -1's as my binary values. What I'm doing at present is adding one vector at a time to my existing matrix using a random number generator (my random numbers...- sue132
- Post #5
- Forum: Programming and Computer Science
-
S
Fortran Help with Fortran: Generating Random Vectors w/ Binary Values
I think that is what my end result would be. I have to generate a matrix with random vectors, and then when i do the orthogonalization, I think I'll get a Hadamard matrix as the result. Thanks for the info- sue132
- Post #4
- Forum: Programming and Computer Science
-
S
Fortran Help with Fortran: Generating Random Vectors w/ Binary Values
Hi, I'm trying to generate a set of random vectors with binary values. I need to generate them such that each time, one new vector gets added to the existing matrix. I have been using call random_number(ranval) for the generation, but I haven't been able to get linearly independent vectors. (I...- sue132
- Thread
- Fortran
- Replies: 7
- Forum: Programming and Computer Science