Questions tagged [boundary]
481 questions
3
votes
1 answer
Boundary decision with knn-classifier
I want to find the boundary-decision function in order to classify my data. Here is an example of them.
"Distance","Dihedral","Categ"
4.083,82.267,C
4.132,87.073,C
4.713,-80.999,C
3.427,-48.144,NC
3.663,96.994,C
…
3
votes
1 answer
32bit executable session is aligned by 4kb, is it part of elf format?
I wish to know if ELF format has specified that each section should be aligned to 4kb boundary?
Or, only on x86 platform, the 'implementation' of ELF should align each section to 4kb boundary.
Is there any specification to judge about this?

Troskyvs
- 7,537
- 7
- 47
- 115
3
votes
1 answer
Find adjacent elements in a 2D numpy grid
so I have a 2D Numpy array that looks something like this:
[[1,1,1,2,2],
[1,1,1,2,2],
[1,2,2,2,2]]
where each number in the array represents a region. I want to generate a boolean array that shows True on positions whos adjacent elements are NOT…

user3396592
- 363
- 1
- 5
- 15
3
votes
1 answer
UICollisionBehavior boundary not working
I've got a view within a navigation controller.
I am then adding a subview to this view and offsetting its origin height so that it covers only half the screen (with the other half overflowing off out the bottom of the screen).
I want to be able to…

myles
- 1,681
- 1
- 15
- 27
3
votes
2 answers
Word boundary search and exclamation mark at end of word
I can't find out how to search words with an exclamation mark at the end using boundaries.
p.e.
text:
Do this!
search:
/\
This doesn't match this! in the text.
This either:
/\
I suppose that VIM thinks it must be…

Reman
- 7,931
- 11
- 55
- 97
3
votes
3 answers
r checking if row elements are within bounds
I am working with a large set of combinations. I would like a way to eliminate a portion of them, such that all combinations where the elements are close together (where close is set by me) are eliminated. (Note, it may take a second or two, it's…

RegressForward
- 280
- 1
- 15
3
votes
2 answers
Latin char in Javascript regexp
How can i inlude the use of latin chars like ČčĆ抚Đđ in this javascript regexp
var regex = new RegExp('\\b' + this.value, "i");
UPDATE:
I have this code for filtering checkbox label, but it doesnt work well when there is an input with Č č…

user2406735
- 247
- 1
- 6
- 21
3
votes
1 answer
Implementing 2D Torus Array with Haskell's Repa
I just started looking at Repa and would like to know how to best implement a wrap-around, torus style 2D array read/written by stencil operation. I implemented this before using the ST monad and mutable vectors, but it seems this is not supported…

NBFGRTW
- 459
- 3
- 11
3
votes
1 answer
How can I assign values to a surface in matlab?
I am trying to build a 3D CFD pipe flow model using MATLAB, and I am hoping to assign values (boundary conditions) on the pipe wall. I've tried building a pipe using the cylinder function:
[X Y Z] = cylinder
but this generates me several points on…

user2021060
- 31
- 2
3
votes
2 answers
Boundaries in Java Gaming, How do "professionals" do it?
How do professionals do boundaries in a 2D game? The way I do is say I don't want the sprite to move into a certain area:
//Example
if ((playerPosX >= 825) && (playerPosX <= 910)&& (playerPosY >= 170) && (playerPosY <= 255)) {
//do…

Exikle
- 1,155
- 2
- 18
- 42
3
votes
3 answers
Get the indexes of the boundary cells of a subset of a matrix. Matlab
Given a matrix where 1 is the current subset
test =
0 0 0 0 0 0
0 0 0 0 0 0
0 0 1 1 0 0
0 0 1 1 0 0
0 0 0 0 0 0
0 …
user1676521
3
votes
1 answer
Matlab interpolate (interpn) ignore dimensions with NaN
Possible Duplicate:
MATLAB: Using interpolation to replace missing values (NaN)
I would like to interpolate data in multiple dimensions using the interpn command.
The problem is that the data contains NaN's. Therefore, in some dimensions, there…

Breugem
- 183
- 4
2
votes
3 answers
setting non-linear boundary in 2D game
Normally to set a boundary at a certain area, I would implement something like:
if(player.X > 400){
player.X = 400;
}
This acts as though there is a vertical line at X=400, blocking movement beyond that. I'm wondering how I would implement at…

Sam
- 2,309
- 9
- 38
- 53
2
votes
1 answer
Free boundary conditions in MATHEMATICA - is this right? Second opinion
I'm trying to prescribe free boundary conditions for a non-linear evolution equation in mathematica and I wanted as second opinion on whether or not what I am doing is right.
The boundary conditions have been marked with a comment, viz., (FREE…

dearN
- 1,256
- 4
- 19
- 40
2
votes
0 answers
5-th order differential equation with BVP5c
I am trying to solve this differential equation :
In order to do so : there is a mathematical part consisting on determining the boundary conditions of this problem that are defined as :
More precisely, the first BC is formulated differently since…

Wiss
- 145
- 6