This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://en.wikipedia.org/wiki/Pareto_interpolation | |
# Example Pareto interpolation to calculate household median income. | |
# Assumes that incomedata is a list of 17 elements containing table B19001 from the United States ACS 5-year summary file | |
from math import log | |
def calculate_median(incomedata): | |
bucket_tops = [10000, 15000, 20000, 25000, 30000, 35000, 40000, 45000, 50000, 60000, 75000, 100000, 125000, 150000, 200000] | |
total = incomedata[0] | |
for i in range(2,18): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
SOURCE="" | |
if [ $# -gt 1 ] | |
then | |
SOURCE="--source ADF -l 3" | |
outname=$2 | |
pbreak=$1 |
NewerOlder