Questions tagged [neighbours]
166 questions
0
votes
1 answer
How to create routing table with flood method in omnetpp
The goal is to create a routing table, so each node can send from wherever it is, a message to the node with the most neighbors.
Let's say i have this network
So every node's mission is to send a message to node4. To accomplish, there has to be a…

Thanos Sakis
- 91
- 13
0
votes
0 answers
How to find Zmin in point cloud within specific distance?
Firstly, I need to find for each point in point cloud the neighboard points within 20 m in XY plane. After that from points within 20 m radius I need to find the Zmin and Zmax.

user10827304
- 21
- 3
0
votes
2 answers
Update multithreading cells based on neighbor's value. How to continue with CyclicBarrier?
I'm trying to accomplish the following:
Get two inputs from the user (length and amountOfCycles)
Create an array containing length amount of Threads. Each containing an integer value within the range [1, 100].
Loop the amountOfCycles + 1 amount of…

Kevin Cruijssen
- 9,153
- 9
- 61
- 135
0
votes
1 answer
how can i send bid messages to all neighbors in wireless range in ONE simulator?
I am trying to develop a routing protocol and i need send some bid messages to all nodes which are in my wireless range in ONE simulator and they should reply to this message, and according to information in their reply messages i will choose one…

amir babazadeh
- 9
- 3
0
votes
1 answer
Number of neighbours in KNN random subspace classifier
I built a classifier model using KNN as learners for an ensemble based on the random subspace method.
I have three predictors, whose dimension is 541 samples, and I develop an optimization procedure to find the best k (number of neighbours).
I chose…

marta
- 5
- 3
0
votes
1 answer
Most efficient way of comparing each element in a 2D numpy array to its 8 neighbours
So in a binary array I'm trying to find the points where a 0 and a 1 are next to each other, and redraw the array with these crossover points indicated by modifying the 0 value. Just wondering if there's a better way of comparing each of the values…

James
- 45
- 7
0
votes
1 answer
How do I spread a color between neighbouring patches?
We are designing a classroom in Netlogo that looks like this:
Classroom
The person represents the teacher walking around in the classroom, the grey patches represent empty seats, the green patches represent seats with concentrated students and the…

Kelian
- 13
- 1
0
votes
1 answer
retrieve neighbour entry via struct rt
I'm working on a kernel module code, where I need to peek in to the
routing table to fetch ARP table entry for my daddr:
|--------------------------------------------------|
-------+ enp0s1 192.168.2.0/24 192.168.3.0/24 enp0s2 +-----
…

Mark
- 6,052
- 8
- 61
- 129
0
votes
1 answer
Netlogo, assigning variable to neighbors
I have a problem with my code,
I am making a land use model where I want to give patches that have a surplus a new land use. To determine to what land-use the patch should change is based on the attractiveness of its neighbors.
Patches own =…

Rdb
- 21
- 5
0
votes
0 answers
Looking for neighbors in a matrix and store it
I'm trying with Javascript to check if a position of an array has a neighbor and then, store it, but I'm getting an error that I don't understand why happens.
Uncaught TypeError: Cannot read property '-1' of undefined
at BeginGame…

owenjr
- 13
- 2
0
votes
2 answers
C programming two-hop neighbors
I am not sure how to get my two-hop neighbors correctly. It's almost correct but on my output, I don't want to include the same vertex. For my output now if vertex 0 is 0, it says "vertex 0: 0.....
I want to skip the vertex it is currently looking…

mugglepot
- 27
- 7
0
votes
1 answer
Choosing patch analysing neighboors netlogo
I am trying to model an community that engages in shifting cultivation. For that I want each household to change the patch every year. Each household can have a different crop area, depending on time and number of people working. I want them to be…

Pris Cunha
- 49
- 5
0
votes
2 answers
Fastest way to check each neighbor in 2D array
I am working on a random dungeon generator just for fun / as a side project to learn some new things. I have written a function that returns an integer hash value for any given cell, which gives you information about what type of gameobject it…

whiskey golf
- 167
- 2
- 14
0
votes
2 answers
Speed up Iteration Over Neighbors in a Graph
I have a static graph (the topology does not change over time and is known at compile time) where each node in the graph can have one of three states. I then simulate a dynamic where a node has a probability of changing its state over time, and this…

Kevin Liu
- 378
- 2
- 13
0
votes
0 answers
Fitting spatial regression with repeated measures making incorrect neighbours
I am trying to fit a spatial lag model (spdep::lagsarlm), after having built a neighbour distance matrix. I have two questions, because every time I read about it, the model always fit data that has only one single observation (one row) per each…

agenis
- 8,069
- 5
- 53
- 102