uk.ac.leeds.ccg.andyt.projects.moses.misc
Class AgeConverter
java.lang.Object
uk.ac.leeds.ccg.andyt.projects.moses.misc.AgeConverter
public class AgeConverter
- extends java.lang.Object
For converting and classifying age groups.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AgeConverter
public AgeConverter()
getAgeClass1
public static short getAgeClass1(int age)
- Returns:
- short of age which is by default 75 and is otherwise:
0,16,20,25,30,45,60,65,70
getAgeClass2
public static short getAgeClass2(int age)
- Returns:
- short of age which is by default 60 and is otherwise:
0,20,30
getAgeClass3
public static short getAgeClass3(int age)
- Returns:
- short of age which is by default 75 and is otherwise:
0-15,16,20,25,30,45,60,65,70,75,80,85,90
getAgeClass4
public static short getAgeClass4(int age)
- Returns:
- short of age which is by default 75 and is otherwise:
0,16,20,25,30,45,60,65,70,75,80,85,90
getAgeClassHSARDataRecord
public static short getAgeClassHSARDataRecord(int age)
- Returns:
- short of age which is by default 80 and is otherwise:
0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,
52,54,56,58,60,62,64,66,68,70,72,74,76,78
getAgeClassISARDataRecord
public static short getAgeClassISARDataRecord(int age)
- Returns:
- short of age which is by default 97 and is otherwise:
0-15,16,20,25,30,45,60,65,75,76-96
getAge1
public static int getAge1(int age,
java.util.Random aRandom)
- Returns:
- int age which is by default 90 else a random assignment in ranges:
0-19,20-24,25-29,30-39,40-44,45-49,50-54,55-59,60-64,65-74,75-84,85-90.
getAge2
public static int getAge2(int age0,
java.util.Random aRandom)
- Parameters:
age0
- aRandom
-
- Returns:
- int age which is by default 80 else a random assignment in ranges:
0-19,20-29,30-39,40-49,50-59,60-69,70-79
getAge3
public static int getAge3(int age,
java.util.Random tRandom)
- Returns:
- int age which is by default 90 else a random assignment in ranges:
0-4,5-7,8-9,10-14,15,16-19,20-24,25-29,30-44,45-59,60-64,65-74,75-84,85-90.
getAge4
public static int getAge4(int age,
java.util.Random aRandom)
- Returns:
- int which is by default age and otherwise a random assignment in ranges:
75-79,80-84,85-90.
getAge5
public static int getAge5(int age,
java.util.Random aRandom)
- Returns:
- int which is a random assignment in ranges:
0-19,20-29,30-59,60-90.
getAge7
public static int getAge7(int age,
java.util.Random tRandom)
- Returns:
- int age which is by default 90 or a random assignement in the
ranges:
0-15,16-19,20-24,25-29,30-44,45-59,60-64,65-74,75-79,80-84,85-90.
getAge6
public static int getAge6(int age0,
java.util.Random tRandom)
- Returns:
- int age which is by default 90 else a random assignment in ranges:
0-4,5-7,8-9,10-14,15,16-19,20-24,25-29,30-44,45-59,60-64,65-74,75-84,85-90.