Questions tagged [n-dimensional]

n-dimensional involves computation in higher dimensions

Usually used in math,physics,machine learning and computer graphics. Its common to downgrade n-dimensional problems down to 4D/3D/2D/1D using techniques like:

  • projection
  • cross-section
  • PCA

either to lower the needed processing or storage power needed to handle it or to visualize or just to simplify.

110 questions
0
votes
1 answer

N-Dimensional Point Class

public final class Point { private List instance; public Point(List instance) { this.instance=instance; this.setI(instance); } public void setI(List instance) { this.instance = instance; } public List getI()…
Kerem GUL
  • 39
  • 5
0
votes
2 answers

Interpreting linear memory space as 1D,2D,...,ND efficiently in C

Is it possible to allocate a 1D memory space int *x=(int *)malloc(100*sizeof(int)); and then recast the returned pointer to 2D array e.g. int **y=(int **)x; and access it as if it was 2D array e.g. y[1][2] = 12;? My aim is to take a shared memory…
bliako
  • 977
  • 1
  • 5
  • 16
0
votes
1 answer

Simulation of an arbitrary bag of marbles

So, I'm trying to simulate an arbitrary model of a bag of marbles (with replacement, if that makes a difference in how this works) and am running into issues displaying the results. How I have it set up is the code asks for how many marbles are in…
0
votes
1 answer

C++ Generate and store the co-ordinates of an n-cube

I want to write a function to generate and store the co-ordinates of an n-cube and I have no idea how to start. Specifically, I wish to generate the co-ordinates for an evenly or randomly distributed cloud of points for this n-cube and store them.…
Ben
  • 107
  • 1
  • 12
0
votes
0 answers

Finding Eigenvalue and Eigenvector of a symmetric n*n matrix in Matlab

I need to find the eigen value decomposition of the symmetric matrix in Matlab. But I do not want to use the matlab inbuilt function eig Can anyone tell me efficient algortihm. I have already implemented the power Iteration Algorithm but it is not…
0
votes
1 answer

How to prepare, populate and explore an n-dimensional numpy array?

I have modeled a physical system with like 28 parameters. The simulation computes another list of about 10 output parameters. Now I need to explore the parameter space: some of the input parameters I keep constant, and some have several values. The…
Amenhotep
  • 920
  • 1
  • 13
  • 18
0
votes
3 answers

Modifying N-dimensional array PHP

how can I add an extra dimesion before each element in N-dimensional array (recursively)? Let's say I have Array ( [room] => Array ( [bed] = Array ( [material] => wood ) …
Marek Teuchner
  • 327
  • 1
  • 4
  • 15
0
votes
0 answers

Intersection of two convex set in n-dimensional space

Let $X={x_1,\ldots,x_p}$ and $Y={y_1,\ldot,y_q}$ be two set of points in $\mathbb{R}^n$. Is there a method to find $\mathrm{conv}(X)\cap \mathrm{conv}(Y)$ as $\mathrm{conv}(Z)$, where $Z$ is some subset of $\mathbb{R}^n$?
SAM
  • 101
  • 2
0
votes
2 answers

Adding values to 3 dimensional list in Java

Short Version How do you add values to a 3 dimensional array list at one go? List>> FD = new ArrayList>>(); I learnt that for a normal Arraylist, the following can be done List R = new…
42cornflakes
  • 193
  • 4
  • 15
0
votes
2 answers

Points enclosed by a custom defined Hypercube

I have a N-dimensional vector, X and 'n' equidistant points along each dimension and a parameter 'delta'. I need a way to find the total of n^N vectors enclosed by the Hypercube defined with the vector X at the center and each side of Hypercube…
user59634
0
votes
2 answers

determining the distance between points in n-dimensions

I am building a mySQL table listing points in n-dimensions, each dimension being indexed. Given any point in the n-dimensional system, I would like to be able to output all of the other points in order of their distance from the chosen point. A…
0
votes
1 answer

Dereferencing Non-Pointers in C: n-dimensional arrays

I was wondering if it is possible to reach the lowest level (the non-pointer level) of an n-dimensional array in C by conditionally dereferencing different layers of pointers until you reach a layer that is not pointers, as in the following…
algorowara
  • 1,700
  • 1
  • 15
  • 15
-1
votes
2 answers

Choose a point maximizing the distance to its nearest neighbor

Consider a set of points in an n-dimensional space. Each dimension is bounded in the range [0, 1] inclusive. Add a new point to the space as far away as possible from its nearest neighbor. Where should that point go? One-Dimensional Example: You are…
Brian Schack
  • 300
  • 3
  • 14
-1
votes
2 answers

In Python can I loop over a single value?

I have a function of 5 variables. I would like to visualize how the function behaves by plotting a surface where I span the range of 2 variables and hold the remaining 3 constant. In my case, the function is Black Scholes and it is a function of…
-1
votes
2 answers

Combinations in n-dimensions - How determine if Points see each other (If they are on same axis)

In n-dimensional grid (Max. 10^7 dimensions) are two points. They have imaginary sensors on every axis. I need algorithm what will calculate all possible options when these two points can spot themselves. Formal written from my task document…
user7757483