Create hypercubePoints.m
This commit is contained in:
parent
5c1bb7bfa9
commit
69a30da0a6
1 changed files with 6 additions and 0 deletions
6
Task/K-d-tree/Matlab/hypercubePoints.m
Normal file
6
Task/K-d-tree/Matlab/hypercubePoints.m
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
function randomPoints = hypercubePoints(numPoints, hypercubeSize, numDimensions)
|
||||
% Generate random points in the n-dimensional hypercube
|
||||
|
||||
randomPoints = hypercubeSize * rand(numPoints, numDimensions); % scales these values to the dimensions of the n-dimensional hypercube
|
||||
end
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue