Questions tagged [population]

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

183 questions
69
votes
7 answers

How can I know when SQL Full Text Index Population is finished?

We are writing unit tests for our ASP.NET application that run against a test SQL Server database. That is, the ClassInitialize method creates a new database with test data, and the ClassCleanup deletes the database. We do this by running .bat…
GarethOwen
  • 6,075
  • 5
  • 39
  • 56
17
votes
5 answers

Retrieving population density data

I need to figure out whether not a given location is considered urban or rural. I take it that the best way to do this is by looking at the population density of the city/state or province/country combination. The kicker is that we're using this for…
7
votes
1 answer

How to build a population pyramid with python

I'm trying to build a population pyramid from a pandas df using seaborn. The problem is that some data isn't displayed. As you can see from the plot I created there's some missing data. The Y-axis ticks are 21 and the df's age classes are 21 so why…
Marco Mariani
  • 97
  • 1
  • 2
  • 6
6
votes
1 answer

Choosing individuals from a population, by a fitness function

I've been working on an algorithm, where I need to choose n individuals from a population of size k, where k is much bigger than n. All individuals have a fitness value, therefore the selection should favor higher fitness values. However, I don't…
Ekin Koc
  • 2,996
  • 20
  • 24
6
votes
1 answer

Dynamically populate a field based on dropdown selection (Javascript / HTML)

I am looking for some help in coding my companies website. We are trying to create a custom "part number generator" based on selections made from a dropdown box. Our goal is that when a user picks an option in the dropdown box that it dynamically…
FlexMarket
  • 155
  • 1
  • 2
  • 10
6
votes
2 answers

SSE 4 popcount for 16 8-bit values?

I have the following code which compiles with GCC using the flag -msse4 but the problem is that the pop count only gets the last four 8-bits of the converted __m128i type. Basically what I want is to count all 16 numbers inside the __m128i type but…
pandoragami
  • 5,387
  • 15
  • 68
  • 116
5
votes
1 answer

Creating Population Pyramid with D3.js

I need to make a classic looking population pyramid with D3.js. Something similar to this image: I have found a few examples that look really good (this and this) but they are more complex than I'm looking for. Does anyone know of a good SIMPLE…
bailey
  • 353
  • 6
  • 19
4
votes
1 answer

Creating data in Prefuse

I am new to Prefuse. The demo examples are all loaded data from a file/database. Is there any way to create the data dynamically instead of loading from file. For example, I want to create a tree data structure and visualize this. Any simple working…
Muhammad Asaduzzaman
  • 1,201
  • 3
  • 19
  • 33
4
votes
2 answers

Is it possible to populate objects in map schema type?

I have schema type Map in my mongoose model. In this map, each element has reference to another model. I know that it's possible to populate attributes in array, but how about Map type? Be cause nesting like…
Karolis Tička
  • 244
  • 1
  • 4
  • 13
3
votes
2 answers

Populating a database in PostgreSQL

The following link on the PostgreSQL documentation manual http://www.postgresql.org/docs/8.3/interactive/populate.html says that to disable autocommit in postgreSQL you can simply place all insert statements within BEGIN; and COMMIT; However I have…
prince
  • 671
  • 2
  • 11
  • 26
3
votes
2 answers

Why does my deSolve model in R stop integrating when I incorporate a conditional source of mortality in my population model?

I have constructed a population model in R to identify the efficacy of potential control strategies for the cockroach population in my apartment. I have introduced a term that will add an additional source of mortality to the adult cockroach…
3
votes
1 answer

How to get the population of a location query (country or state/province and/or county) using wikipedia API?

I am trying to use the Covid-19 Dataset to build an SIR model. In order to build this model, I require the population of each location (country or province/state and/or county) to calculate the S (susceptible) in SIR. Since this dataset does not…
user10121139
3
votes
2 answers

Generate population data with specific distribution in R

I have a distribution of ages in a population. For instance, you can imagine something like this: Ages <24: 15% Ages 25-49: 40% Ages 50-60: 20% Ages >60: 25% I don't have the mean and standard deviation for each stratum/age group in the data. I am…
user2657817
  • 652
  • 2
  • 9
  • 18
3
votes
1 answer

Computing iterations in R to calculate the rate of population increase

I´ve tried to calculate the rate of population increase, denoted as r, which is obtained from: sum(e^(r*x)*lx*mx) = 1 I know the values of x, lx, and mx, but r value should be iteratively obtained to get a sum of one. This is the code I wrote…
marzatc
  • 31
  • 1
3
votes
3 answers

Population replacement pyevolve

Looking for a way to reuse 50% of previous population best individuals in different GA iteration . For example at the end of current iteration inside a process do "population = ga.getPopulation()".Next iteration initialize 50% of that pop. Does…
Jack
  • 106
  • 1
  • 9
1
2 3
12 13