Questions tagged [hypercube]
31 questions
1
vote
1 answer
Building a directed multigraph (Python)
Lets say I get one list which represents the weights to adjacent nodes. The multigraph is shaped like a hypercube. The nodes will be named by their coordinates as a binary string.
En example for n=3
bin_string = ['000', '100', '010', '001', '110',…

sebastian
- 478
- 8
- 22
1
vote
3 answers
MPI hypercube broadcast error
I've got a one to all broadcast method for a hypercube, written using MPI:
one2allbcast(int n, int rank, void *data, int count, MPI_Datatype dtype)
{
MPI_Status status;
int mask, partner;
int mask2 = ((1 << n) - 1) ^ (1 << n-1);
for (mask =…

luvieere
- 37,065
- 18
- 127
- 179
1
vote
1 answer
uniform sampling from a ellipsoidal confidence region
I have a 4-dimensional ellipsoid from which I want to draw samples uniformly. I thought of an approach using a hyper cube around the ellipsoid. We can draw a sample from it and check if it is in the ellipsoid. But the volume ratio of hypercube and…

chaithu
- 509
- 2
- 7
- 29
0
votes
1 answer
Obtain coordinates of 4D-hypercubes using meshgrid - Python
I'm looking to obtain the coordinates of all the 4D-hypercubes generated by using meshgrid in 4D.
The thing is that I have irregular divisions of the axes.
For example:
x = [0,1,2,3,5]
y = [0,1,2,3]
z = [0,1,2,3,4]
w = [0,1,2,3,5,6]
My idea is…

Antonio Gracia
- 1
- 2
0
votes
1 answer
How to extract the spectra range within a roi mask?
I am learning hyperspectral data analysis, so my question may sound simple.
I am reading a hypercube by using the following command:
import spectral.io.envi as envi
hc = envi.open('cube_envi32.hdr','cube_envi32.dat')
'hc' has the following…

S.EB
- 1,966
- 4
- 29
- 54
0
votes
0 answers
Scipy Latin Hypercube sampling with constraints
I am trying to create a latin hypercube sampling with scipy, using the following code:
from scipy.stats.qmc import LatinHypercube
engine = LatinHypercube(d=250, seed=42)
sample = engine.integers(l_bounds=0, u_bounds=2, n=50)
>>>…

oakca
- 1,408
- 1
- 18
- 40
0
votes
0 answers
How to rotate a hypercube in javascript in X axis?
I programmed a hypercube in javascript using p5.js and works fine, but I would like to know how to rotate this hypercube in X axis using matrix rotations. I know that we can do this using standard functions in p5.js like rotateX (in the line 84),…

visionary
- 51
- 4
0
votes
0 answers
Generating GreyCode Recursively
so Im trying to make a recursive solution to a hypercube where a walk method allows you to walk to every point in a hypercube. for example if you put walk(3) the console should output:
000, 001, 011, 010, 110, 111, 101, 100
I have made an iterative…

i suck at coding
- 3
- 2
0
votes
0 answers
qlik sense capability api 10000 limit
We've reached the limit for hypercubes and need to extract more than 10000 (data points - I used this term for lack of words to describe the individual cell that the API sends over 10000 is the max when you multiply width and height of your initial…

edwin.koh
- 1
- 2
0
votes
0 answers
filling seeds in latin hypercube - lhs for r
having an simple latin hypercube
mylhs<-randomLHS(3, k=2)
plot(mylhs,ylim=c(0:1),xlim=c(0:1),pch="+")
abline(v=1/3)
abline(v=2/3)
abline(h=1/3)
abline(h=2/3)
I want to augment it by 6 more seeds so that in every cell is at least one.
The next step…

paule
- 61
- 6
0
votes
1 answer
r - Latin hypercube sampling with varying number of levels per variable
I did some digging around, but I'm still very new to the concept of latin hypercube sampling. I found this example which uses the lhs pacakge:
set.seed(1)
randomLHS(5,2)
[,1] [,2]
[1,] 0.84119491 0.89953985
[2,] 0.03531135…

Maria Reyes
- 369
- 3
- 18
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
2 answers
MPI_Send or MPI_Recv is giving segmentation fault
I'm trying to calculate pi using mpi c library on hypercube topology. But the execution doesn't proceed the MPI_Send and MPI_Recv part.
I'm using 4 processors!
It seems like none of the processors are receiving any data.
Here's the code, output and…

Adroit
- 701
- 1
- 6
- 18
0
votes
1 answer
Sort a nested JSON array in place
This is my JSON structure :
Root
|- cells []
|-Individual cells containing the following
|- Facts (Object)
|- Measures (Object)
|- Key values pairs
|- other…

Kazekage Gaara
- 14,972
- 14
- 61
- 108
0
votes
0 answers
Latin hypercube sample from a single random variable
I use Simple Random Sampling and Latin Hypercube Sampling in order to find the differences between the 2 methods as we calculate the variable for 1 pixel of an image and see the differences for the 2 methods of the Means and Variances. The number of…

Loukas K.
- 1
- 3