Questions tagged [4d]

4D involves calculations in four dimensions and typically relates to graphics programming. Use the [4d-database] tag for questions about the 4th Dimension database.

From Wikipedia, as of 5 March 2017‎:

In mathematics, four-dimensional ("4D") is a geometric space with four dimensions. It is typically meant to mean four-dimensional Euclidean space, generalizing the rules of three-dimensional Euclidean space. It has been studied by mathematicians and philosophers or over two centuries, both for its own interest and for the insights it offered mathematicians and related fields.

146 questions
0
votes
1 answer

Error in dat file Exception from IBM ILOG Concert Excel range is unknown

I write a 4D array data for my model, and now it show an error like the title. Anyone help me to fix it? This is a part of the data file: dat file And this is the data file: data demand data D&C I try to find solution on internet but it not work
0
votes
0 answers

4D data to 2D contour

I have 4D data, each coordinate is independent: 2.76600e+00, -7.85800e+00, 1.40220e+01, 5.56817e+01 I have a long data, 2 millions points When I plot it I get something like: But then I can't see anything. so I would like to convert my data to 2D…
0
votes
0 answers

4D input data in LSTM

I have data with a shape of (11242, 4, 5, 200) where num samples = 11242, sequence = 4, Number of items the sample has= 5, A 200D vectorization of the item= 200 That is, each of 11242 people has five items per sequence, and each item is converted…
0
votes
0 answers

Cinema 4D Python Script Question - OBJ Sequence Player

I'm trying to modify the code which was originally written by Arttu Rautio. Previously I had added child[c4d.ID_BASEOBJECT_GENERATOR_FLAG] = False code and It had worked for a purpose. I need to deactivate the TAG on child object while keeping rest…
grasycho
  • 23
  • 3
0
votes
0 answers

how to convert a 4D array into a data frame for post-hoc analysis

I am trying to convert a 4D array into a data frame for host hoc analysis (tukey test) patients_all.shape (14, 91, 109, 91) patients_all ` array([[[[nan, nan, nan, ..., nan, nan, nan], [nan, nan, nan, ..., nan, nan, nan], [nan,…
ellie
  • 1
  • 1
0
votes
0 answers

Mapping 3D Scatter Points with Unique, Interpolated Colors

So I'm trying to create a 3dscatter plot using matplotlib and have had issues trying to map each individual point to a heat map value. My end goal is to have a 4d graph that visualizes my data. The issue is that some of my data points are repeated…
user20453364
0
votes
1 answer

How to define a tuple for reading 4 dimensional parameter in cplex .mod file and .dat file?

How can I read data 4D from Excel file for MILP model in Cplex? I want to know how to define this parameter and apply in constraint enter image description here enter image description here
H Bagheri
  • 1
  • 1
0
votes
1 answer

4D graph in gnuplot Haskell package

I am trying to use gnuplot package for Haskell (https://hackage.haskell.org/package/gnuplot) for building a 4D plot as described here (4D plot with gnuplot). But I cann't figure out how to set appropriate 3DGraph type. My problem is to draw a…
0
votes
2 answers

Is there a method to preform matrix multiplication through a 4d array (row-wise) in python, without using for loops?

So I have setup a 4d numpy array, and I'm trying to preform matrix multiplication row-wise in the 4d array. I'm trying to not use a for loop and np.linalg.multi_dot for the sake of trying to keep the programme as fast as possible. This is what it…
0
votes
2 answers

Is there a way to determine the new position of entity E, given angles and distance in higher than 3 dimensions?

I want to be able to take a given Entity E, it’s current facing angles, it’s origin position, and then find the coordinates of a future point given a distance. I know there are many ways to do it in 2d and 3d, but I want to figure it out for any N…
Endleon
  • 9
  • 2
0
votes
0 answers

I'm trying to project 4D lines to 3D to 2D and clip them at z=p and w=p, but I'm not sure if it's rendering correctly

I've been trying to write a program that can render 4D lines, the specific function doing this gets the lines already rotated, and the function attempts to clip the lines at planes z = p and w = p if needed, and then draw the line to the screen. I…
Joe Dimagio
  • 55
  • 1
  • 1
  • 6
0
votes
1 answer

4D plot surface does'nt display the colors of my 4th dimension

I've been trying de plot 4D figures of aerosols emissions in the atmosphere with X = Longitude, Y = latitude, Z = Injection Heigh of aerosols and cbar = Emissions quantity. The following lines do the job but the cbar datas seems to be 0…
Thomas V
  • 53
  • 1
  • 5
0
votes
0 answers

Define matrices in an array element C++

I have written some c++ code that receives a Matrix as input and now I want to create a 2D array with matrices in each element so that I can send the individual matrices to the function. typedef vector< vector > Matrix; double a[2][2] = Matrix(2,…
0
votes
1 answer

How to graph, using ggplot2, a data frame with 3 independent discrete variables and a continuous dependent variable? (Other packages are welcome too)

I have a data frame with 3 discrete and independent variables. These variables were combined with each other and the result of the combination generated a value for each set (continuous and numerical dependent variable). So far I have not been able…
Daniel Valencia C.
  • 2,159
  • 2
  • 19
  • 38
0
votes
0 answers

speeding up griddata 4D interpolation with unstructured data

I know there are some similar threads on this topic, but I read almost all of them, yet the solutions are not applicable to my specific (4D, unstructured data) case. I want to interpolate my values (on points) on a 4D meshgrid. I use griddata of…
sonqz
  • 1
  • 1