Questions tagged [magnitude]
74 questions
0
votes
2 answers
What is the inverse of: f(vector) = vector*squareMagnitude
I believe the square magnitude of a 3 component vector is: (xx + yy + z*z). If you multiply a vector by its square magnitude, is there a function that you can perform to obtain the original vector?
Lets take original vector3 A = (Ax, Ay, Az).
The…

anonymouscoder
- 19
- 3
0
votes
1 answer
How to accurately calculate high Lp norms in PyTorch
I am using torch.norm to calculate Lp norms with relatively large values for p (in the range of 10-50). The vectors I do this for have relatively small values and I notice that the result incorrectly becomes 0. In the example above, this already…

Thomas Wagenaar
- 6,489
- 5
- 30
- 73
0
votes
1 answer
Finding the magnitude of a 3X1 complex vector in Python?
I was wondering if someone would help me with this problem.
I have complex 3x1 matrix that looks like,
matrix = np.matrix([[(0.0009118819655545739+0.0009118819655545738j)], [(0.0009118819655544588-0.0009118819655544589j)],…

UbuntuPython
- 21
- 2
0
votes
1 answer
What decimal value does the 8-bit binary number 11011111 have if it is on a computer using signed-magnitude representation?
I am confused on how to present this in decimal value
Would it be just the negative value of 223 or would it be -125?

sleepy
- 1
- 1
0
votes
0 answers
Calculate the phase of a signal based on the generated data
I have written a simple code to calculate the phase and magnitude of a signal, based on the sinusoidal input given in my problem. I have already determined the magnitude of the signal corresponding to different values of w. More specifically, the…

MMd.NrC
- 91
- 7
0
votes
0 answers
Sign Magnitude Disadvantages
My prof told me that these 2 questions were wrong on a test, but I fully disagree with him. Here are the questions
Which of the following is the most important drawback of the 1's complement
method?
A) All cases
B) end-around-carry-bit (Carry-Out…

Laugh OL
- 1
- 1
0
votes
0 answers
Colorbar in quiver matplotlib
I need to plot a vector field with the quiver function in matplotlib. I have the X,Y coordinates and the FX, FY vector components saved as individual lists. With this data, I'm able to determine the corresponding unit vectors:
import numpy as np…
0
votes
1 answer
How isolate just the smallest magnitude values from an R data frame
My Problem
I have the following (simplified) dataframe df :
A B C
[1,] 2 -5 20
[2,] -10 -1 10
[3,] 10 -10 0
I want to isolate just the values of the smallest magnitude:
[ 2, -1, 0 ]
How would I do that?
What I've…

Becky Heath
- 137
- 1
- 8
0
votes
0 answers
Big numbers problem while "odeint" numerical integration
I'm having some computational problems with the following code:
import numpy as np
from numpy import arange
from scipy.integrate import odeint
import matplotlib.pyplot as plt
from scipy.integrate import quad
import matplotlib as…

Fredrigo6
- 1
- 4
0
votes
2 answers
How to set non-US location in BigQuery ODBC? (Magnitude Simba on Linux)
Maybe anybody knows...
I need to connect BigQuery via ODBC driver by Simba (Linux). I've installed it. My datasets located in EU, but every single request via ODBC driver I get "Dataset is not found. Not found: Dataset **** was not found in location…

Юрий Шахов
- 1
- 1
- 2
- 5
0
votes
1 answer
ModuleNotFoundError: No module named 'spacy.lang.en.tag_map' when installing plasticityai / magnitude
Installed plasticityai/magnitude (https://github.com/plasticityai/magnitude#installation)
Getting the following error when trying to run:
ModuleNotFoundError: No module named 'spacy.lang.en.tag_map'
I have reinstalled spacy with newest version…

user3765624
- 21
- 7
0
votes
1 answer
LASSO feature selection result and selection of the best features
Now i am applying Lasso for the purpose of feature selection and the result of features regression coefficients are mixed between (negative/positive/zero) values.
I know that "Any features which have non-zero regression coecients are “selected” by…

user2483131
- 1
- 1
0
votes
0 answers
How to compute the magnitude of a data file
I have two a two component data file (called RealData) that i am able to load and plot into python using matplotlib using the following code;
x = RealData[:,0]
y = RealData[:,1]
plt.plot(x,y
the first few lines of the data…

jojo
- 41
- 1
- 1
- 9
0
votes
0 answers
Poor performance with a large topn value for most_similar_approx
I have an API that returns most_similar_approx from a magnitude model . The model is built from native Word2Vec format with 50 dimensions and 50 trees. The magnitude model is close to 350MB, with approximately 350000 tokens.
Load testing this API I…

ptonapi
- 1
0
votes
0 answers
Pole zero plot and frequancy response of a system in MATLAB
I have the following system:
I am required to find its frequency response using freqresp() function and find its magnitude response over the range 0 ≤ ω ≤ 20 in steps of 0.01. I am also required to plot its magnitude response and compare the…

Muhammad Ali
- 1
- 1
- 4