You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
Here is a sample of code in python I want to convert in nodejs.
But there are specific way to describe nparray index in python which not exist in nodejs, for exemple array[ index, :]
Idem for "operator" like + on nparray
Perhaps the dimensions order is different too.
# initialize perturbation rotation
angle = pi / 4
R_true = np.array([[cos(angle), -sin(angle)], [sin(angle), cos(angle)]])
t_true = np.array([[-2], [5]])
# Generate data as a list of 2d points
num_points = 30
true_data = np.zeros((2, num_points))
true_data[0, :] = range(0, num_points)
true_data[1, :] = 0.2 * true_data[0, :] * np.sin(0.5 * true_data[0, :])
# Move the data
moved_data = R_true.dot(true_data) + t_true
Which are the way to convert python with "numjs" ?
Best regard.
The text was updated successfully, but these errors were encountered:
Hello,
Here is a sample of code in python I want to convert in nodejs.
But there are specific way to describe nparray index in python which not exist in nodejs, for exemple array[ index, :]
Idem for "operator" like + on nparray
Perhaps the dimensions order is different too.
Which are the way to convert python with "numjs" ?
Best regard.
The text was updated successfully, but these errors were encountered: