gonum.org/v1/gonum@v0.14.0/mat/fao_data_test.go (about)

     1  // Copyright ©2017 The Gonum Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package mat_test
     6  
     7  import "gonum.org/v1/gonum/mat"
     8  
     9  // FAO is a dataset extracted from Food and Agriculture Organization of the
    10  // United Nations "FAO Statistical Pocketbook: World Food and Agriculture 2015".
    11  // pp49-52.
    12  var FAO = struct {
    13  	Africa                *mat.Dense
    14  	Asia                  *mat.Dense
    15  	LatinAmericaCaribbean *mat.Dense
    16  	Oceania               *mat.Dense
    17  }{
    18  	Africa: mat.NewDense(21, 3, []float64{
    19  		// 1990, 2000, 2014
    20  		35.3, 38, 30.7, // Employment in agriculture (%)
    21  		9.2, 20.3, 25.2, // Employment in agriculture, female (%)
    22  		3163, 14718, 20667, // Energy consump, power irrigation (mln kWh)
    23  
    24  		2597, 2717, 2903, // Dietary energy supply (kcal/pc/day)
    25  		113, 116, 123, // Average dietary energy supply adequacy (%)
    26  		58, 55, 52, // Dietary en supp, cereals/roots/tubers (%)
    27  		18.6, 15, 10.8, // Prevalence of undernourishment (%)
    28  		8832, 10241, 13915, // GDP per capita (US$, PPP)
    29  		-0.4, -0.2, 50.7, // Cereal import dependency ratio (%)
    30  		78.5, 83, 88.7, // Improved water source (% pop)
    31  
    32  		// Production indices (2004-06=100)
    33  		73, 90, 121, // Net food
    34  		72, 89, 123, // Net crops
    35  		82, 92, 123, // Cereals
    36  		51, 77, 141, // Vegetable oils
    37  		74, 94, 119, // Roots and tubers
    38  		58, 86, 127, // Fruit and vegetables
    39  		86, 93, 132, // Sugar
    40  		76, 92, 115, // Livestock
    41  		83, 89, 114, // Milk
    42  		74, 91, 118, // Meat
    43  		72, 92, 119, // Fish
    44  	}),
    45  
    46  	Asia: mat.NewDense(21, 3, []float64{
    47  		// 1990, 2000, 2014
    48  		30.9, 24.5, 27.6, // Employment in agriculture (%)
    49  		40.9, 29.4, 31.1, // Employment in agriculture, female (%)
    50  		7614, 38316, 82411, // Energy consump, power irrigation (mln kWh)
    51  
    52  		2320, 2402, 2581, // Dietary energy supply (kcal/pc/day)
    53  		107, 110, 117, // Average dietary energy supply adequacy (%)
    54  		66, 65, 63, // Dietary en supp, cereals/roots/tubers (%)
    55  		27.6, 25.7, 19.8, // Prevalence of undernourishment (%)
    56  		3315, 3421, 4575, // GDP per capita (US$, PPP)
    57  		25.9, 28.1, 42, // Cereal import dependency ratio (%)
    58  		55.5, 61.1, 68.7, // Improved water source (% pop)
    59  
    60  		// Production indices (2004-06=100)
    61  		60, 82, 129, // Net food
    62  		59, 82, 127, // Net crops
    63  		66, 79, 131, // Cereals
    64  		58, 79, 128, // Vegetable oils
    65  		50, 80, 133, // Roots and tubers
    66  		58, 82, 124, // Fruit and vegetables
    67  		76, 94, 114, // Sugar
    68  		65, 84, 126, // Livestock
    69  		59, 77, 125, // Milk
    70  		67, 87, 127, // Meat
    71  		65, 90, 119, // Fish
    72  	}),
    73  
    74  	LatinAmericaCaribbean: mat.NewDense(14, 3, []float64{
    75  		// 1990, 2000, 2014
    76  		19.5, 14.2, 15.8, // Employment in agriculture (%)
    77  		13.7, 6.2, 7.6, // Employment in agriculture, female (%)
    78  
    79  		2669, 2787, 3069, // Dietary energy supply (kcal/pc/day)
    80  		117, 120, 129, // Average dietary energy supply adequacy (%)
    81  		42, 41, 40, // Dietary en supp, cereals/roots/tubers (%)
    82  		14.7, 12.1, 5.5, // Prevalence of undernourishment (%)
    83  		9837, 10976, 13915, // GDP per capita (US$, PPP)
    84  		13, 12, 49.7, // Cereal import dependency ratio (%)
    85  		85.1, 89.8, 94, // Improved water source (% pop)
    86  
    87  		// Production indices (2004-06=100)
    88  		60, 83, 129, // Net food
    89  		64, 83, 131, // Net crops
    90  		62, 88, 139, // Cereals
    91  		58, 84, 123, // Livestock
    92  		82, 107, 71, // Fish
    93  	}),
    94  
    95  	Oceania: mat.NewDense(21, 3, []float64{
    96  		// 1990, 2000, 2014
    97  		6.2, 17.1, 3.8, // Employment in agriculture (%)
    98  		4.5, 3.9, 4.4, // Employment in agriculture, female (%)
    99  		415, 1028, 8667, // Energy consump, power irrigation (mln kWh)
   100  
   101  		2454, 2436, 2542, // Dietary energy supply (kcal/pc/day)
   102  		113, 112, 114, // Average dietary energy supply adequacy (%)
   103  		49, 50, 48, // Dietary en supp, cereals/roots/tubers (%)
   104  		15.7, 16.1, 14.2, // Prevalence of undernourishment (%)
   105  		2269, 2536, 3110, // GDP per capita (US$, PPP)
   106  		95.2, 95.9, 95.4, // Cereal import dependency ratio (%)
   107  		49.7, 53.2, 55.5, // Improved water source (% pop)
   108  
   109  		// Production indices (2004-06=100)
   110  		72, 99, 116, // Net food
   111  		69, 105, 126, // Net crops
   112  		77, 113, 117, // Cereals
   113  		41, 122, 215, // Vegetable oils
   114  		80, 90, 110, // Roots and tubers
   115  		66, 88, 104, // Fruit and vegetables
   116  		70, 104, 71, // Sugar
   117  		79, 97, 107, // Livestock
   118  		56, 92, 113, // Milk
   119  		79, 96, 105, // Meat
   120  		51, 78, 85, // Fish
   121  	}),
   122  }