Questions tagged [population]

A population is a complete set of items that share at least one common characteristic.

183 questions
0
votes
2 answers

YUI 2.5. Populating a dropdown from XML

Currently editing an application built using YUI 2.5 and Perl. I need to populate a dropdown from an xml file, and only specific rows are to be used depending on the attributes of the node. Unfortunately, there isn't the DropdownCellEditor widget in…
Nick W
  • 3
  • 1
  • 5
0
votes
1 answer

How can I get the value of the selected index of listbox

string KaloriSorgusu = "use FoodDB select drink_kal from Drinks"; SqlConnection baglanti2 = new SqlConnection("Data Source=" + IPFORM.ip.ToString() + "\\SQLEXPRESS;Initial Catalog=UserDB;User Id=Levent;…
0
votes
1 answer

Selecting random values from list until they are gone in Python

Using Python, I want to randomly select people from a list and put them in groups of 5 without selecting the same person more than once. The people are defined by 2 criteria: age and sex. The list of people looks like this: PPL= [1, 4, 6], [2, 5,…
buck
  • 5
  • 2
0
votes
2 answers

Populating a List within a class within another class

I apologize for such a simple question, but I've been working on fixing this code for several hours now and I can't make any headway. I have a project that calls for the usage of three classes: a customer, a employee, and a customer group. The…
-1
votes
0 answers

Generate figure 2 of paper Role of dissolved oxygen on the plankton dynamics in Spatio-temporal domain

I am trying to generate figure 2 of the above paper. I generated the following code with the help of ChatGPT. % Parameters r = 0.445532; a = 3; eta = 0.2; delta1 = 0.1; beta = 0.2; beta1 = 0.4; D0 = 3; alpha1 = 0.18; alpha2 = 0.2; delta2 = 0.3; D_a…
Huá dé ní 華得尼
  • 1,248
  • 1
  • 18
  • 33
-1
votes
1 answer

Is it possible to add multiple agents at once to a population in Anylogic?

I am new to Anylogic. I am building an agent-based model of product delivery. I created a population of agents "trucks", initially empty. The maximum number of trucks available is 5. However, at a given day not all of them may be available (truck…
Igor
  • 1
  • 1
-1
votes
1 answer

Agent-population state chages in AnyLogic

I have a problem with a project in AnyLogic: When it switches from one state to another, a member of my population has to change color. I was able to set the condition, I set the color change but it changes the color of the whole population. Help…
-1
votes
1 answer

Population pyramid plot in R

I am new to R and trying to create a population pyramid plot similar to the first one here https://klein.uk/teaching/viz/datavis-pyramids/. I have a dataset with two variables sex and age groups that looks like this: sex age_group 1 Male…
Assir
  • 11
  • 2
-1
votes
2 answers

calculate distance between two points, if <1 : add to lists x and y coords (population program) Python

I have two lists, positions_rabbits_x (with all the x coordinates) and positions_rabbits_y (with all y coords). After my program runs 200 sec.my "rabbits" are reproducing, however when I call this function my program crashes. (it doesn't print an…
-1
votes
1 answer

data population into the table using ng-repeat in angularJS

i have to populate the data into the table using ng-repeat in the td section if the value is number the text should be aligned to right if it is text or alpha numeric it should be at the left of td.
-1
votes
3 answers

finding different y values along curve in r

So I have plotted a curve, and have had a look in both my book and on stack but can not seem to find any code to instruct R to tell me the value of y when along curve at 70 x. curve( 20*1.05^x, from=0, to=140, xlab='Time passed since 1890',…
-1
votes
1 answer

How to calculate averages from population data?

I am having a lot of trouble finding a method to calculate population census data which is clumped into groups, for example: There are 280 people within the 0-4 years old age range, 258 within the 5-9 age range and so on. How would I calculate this…
-2
votes
2 answers

Html Population Api

In the meantime, I have a question related to programming. I am creating this website about countries and I am wondering what can I do to have an up-to-date population of a certain country. Do you have any idea where I can start or what to do? Your…
-2
votes
1 answer

why does the user always get a return true in Java?

public boolean askQuestion(ArrayList < Application.Country > countries) { int randomNumber = this.getRandomPositionList(countries.size()); Application.Country country1 = countries.get(randomNumber); int randomNumber1 =…
-2
votes
2 answers

How do I display population growth?

Can someone help me with this code? I am using Python 3 and this is a beginner level course. Statistics Canada projects population based on the following assumptions: One birth every 78 seconds One death every 105 seconds One new immigrant every…
1 2 3
12
13