Questions tagged [boundary]
481 questions
5
votes
2 answers
Scipy Curve_fit. Separate bounds for multiple parameters
I am using Scipy to fit my data to a function. The function give me values for 2 parameters, in this case a and b. I want to use the bound argument to limit the values these parameters can take, each have their own range of acceptable values.…

xplodnow
- 247
- 4
- 14
5
votes
1 answer
2D boundary conditions in Fortran
Hi I am having trouble with imposing boundary conditions on a 2 dimensional discretization problem in fortran. My discretization grid is a 2 dimensional square that goes from -L to L in x,y directions.
I want to impose the boundary condition such…

Jeff Faraci
- 403
- 13
- 28
5
votes
1 answer
np.ndarray with Periodic Boundary conditions
Problem
To impose np.ndarray periodic boundary conditions as laid out below
Details
Wrap the indexing of a python np.ndarray around the boundaries in n-dimensions
This is a periodic boundary condition forming an n-dimensional torus
Wrapping only…

Alexander McFarlane
- 10,643
- 9
- 59
- 100
5
votes
4 answers
How to restrict app usability to a certain geographical area ANDROID
I want to define a geographical boundary outside of which, the app will refuse to work. I already know how to do this with a square bound by two lat/long pairs:
if ((dLAT.doubleValue() > 35.309171) || (dLAT.doubleValue() < 35.226442) ||…

Nerdy Bunz
- 6,040
- 10
- 41
- 100
5
votes
1 answer
Hive Find Start and End of Group or Changing point
Here is the table:
+------+------+
| Name | Time |
+------+------+
| A | 1 |
| A | 2 |
| A | 3 |
| A | 4 |
| B | 5 |
| B | 6 |
| A | 7 |
| B | 8 |
| B | 9 |
| B |…

GoGoGo
- 51
- 1
5
votes
1 answer
Trouble Sending Multipart File with Boundary via Volley
I have a customers HTTP call working using the standard apache classes but I am trying to create a custom Volley class to handle this. Here is the code for standard call:
HttpURLConnection conn = (HttpURLConnection) new…

JPM
- 9,077
- 13
- 78
- 137
5
votes
3 answers
How to boundary check in gcc / mingw?
Having tried this
int main(void) {
int a[10];
a[20]=5;
}
gcc -Wall -O2 main.c
It gives me no warning...
It's gcc within windows (mingw) and I am not able to detect this kind of boundary limit bug
how to tell compiler to check it? can mingw do…

Hernán Eche
- 6,529
- 12
- 51
- 76
4
votes
3 answers
Efficient segment boundary marking after segmentation of an image
One can mark the boundary of a binary image by bwboundaries function of MATLAB.
What should be done for obtaining boundaries of all segments as a binary image?
I have segmented an image and want to know if there is a way to mark boundaries between…

Gulcan
- 77
- 2
- 8
4
votes
2 answers
Way to round up number to an int size boundary number of bytes
The following code rounds up the argument to an int size boundary number of bytes.
#define _INTSIZE(n) ((sizeof(n) + sizeof(int) - 1) & ~(sizeof(int) - 1))
On my machine int is 4 bytes, so -- correct me if I'm wrong -- this should be the same as…

user678392
- 1,981
- 3
- 28
- 50
4
votes
1 answer
Compare spatial polygons and keep or delete common boundaries in R
I use to plot maps of Belgium available on GADM (select Belgium) using R.
I import and plot the outside boundary of Belgium using :
belgium <-readRDS("gadm36_BEL_0_sp.rds")
plot(belgium)
Which gives me :
I import and plot the boundaries of…

Gregoire Vincke
- 313
- 2
- 9
4
votes
1 answer
PHP mail(); Send e-mail as plain text AND a HTML
I've the following PHP code for sending e-mails with PHP mail() as HTML:
\r\n";
$headers .= "Return-Path:…
user6792802
4
votes
1 answer
Generate shortest NOT substring for given string
I'm working on MIME message generation code and I'd like to generate as small boundaries as possible for any given input even of unknown length in stream mode.
Right now I end up with good enough solution which based on random generator. Basically…

Felix Vanorder
- 91
- 1
- 4
4
votes
2 answers
How to download the county boundaries of China in OpenStreetMap?
Is there a way to download the shp format file about eh county boundaries of China in OpenStreetMap?

Ben
- 665
- 1
- 10
- 27
4
votes
3 answers
Http/Smtp MIME multipart. Why boundary?
I have a question regarding the design of these protocols. Why do we use boundary to separate parts of the multipart message instead of introducing a content-length for each part? Using length the parsing would easier. Do I miss some principal…

Michael
- 357
- 2
- 12
4
votes
1 answer
Using view.bounds to make boundaries
I'm working on a few basic apps/utilities/games with the iPhone to get a better grip on it.
I currently have a setup where a CGRect moves wherever the finger moves, however I don't want the CGRect to go outside the bounds of the view.
Original…

Sneakyness
- 5,305
- 4
- 33
- 39