Questions tagged [segments]

segments are divisible parts of something usually associated:

  • in programing with memory segmentation (memory pages, or array/table/file division)
  • in Graphics with polyline/polygon parts or any visual division of objects (like hatching,grids,...)
  • in HW architectures,linkers,compilers with separate memory/code areas for program,data,stack...
138 questions
1
vote
0 answers

Draw partial lines with numpy and matplotlib

I have some line which is segmented into 5 sections like this: xx = np.linspace(positions[k][0], positions[l][0], 5) yy = np.linspace(positions[k][1], positions[l][1], 5) zz = np.linspace(positions[k][2], positions[l][2], 5) ax.plot(xx[0], yy[0],…
Popkultur
  • 41
  • 3
1
vote
4 answers

Variable allocation in segments

As a check I tried the following code: const int i = 100; static int m = 90; const int p = 40; int x; main() { const int j = 40; static int k = 40; const int n; char *p = "Rama"; } So please tell which variable goes to which…
codeomnitrix
  • 4,179
  • 19
  • 66
  • 102
1
vote
2 answers

Arrange line segments consecutively to make a polygon

Im trying to arrange line segments to create a closed polygon with python. At the moment I've managed to solve it but is really slow when the number of segments increase (its like a bubble sort but for the end point of segments). I'm attaching a…
Pipo
  • 41
  • 1
  • 7
1
vote
1 answer

MATLAB: How do you avoid misaligment when resampling a segmented signal?

Due to memory limitations, I am segmenting and resampling my data before processing. However, in the process of resampling, somehow the samples get misaligned, i.e. if I have a signal A with length N which I divide into two smaller segments B and C,…
John Smith
  • 704
  • 7
  • 19
1
vote
1 answer

How to find segments in (circular) point map?

I am currently working on a project that involves measuring distances all around a robot with a laser module, the robot then has to move based on the points that he gets. I currently have access to 360 points that represent the distance from the…
Joao Ventura
  • 65
  • 1
  • 11
1
vote
1 answer

__seg_fs on GCC. Is it possible to emulate it just in a program?

I've just read about support for %fs and %gs segment prefixes on the Intel platforms in GCC. It was mentioned that "The way you obtain %gs-based pointers, or control the value of %gs itself, is out of the scope of gcc;" I'm looking for a way when I…
Andrei
  • 107
  • 1
  • 1
  • 5
1
vote
1 answer

Segment Table Calculations

I have a question. I "Googled" it many times but could not find the solution or any method to solve it. On a system using simple segmentation, the segment table is as follows (All values are in decimal): | Segment | Base Register Value | Limit…
1
vote
1 answer

How to force Solr 6 to merge Segments

For comparison purposes I need to merge segments of a Solr core to only one segment. Changing the solrconfig by playing with following lines
1
vote
0 answers

Solr segment merge policy not working

I am using solr-5.4.0 and my current solrconfig.xml settings are 300