This file is indexed.

/usr/lib/python3/dist-packages/openturns/metamodel.py is in python3-openturns 1.5-7build2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.12
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.




"""
Meta-modelling.
"""


from sys import version_info
if version_info >= (2,6,0):
    def swig_import_helper():
        from os.path import dirname
        import imp
        fp = None
        try:
            fp, pathname, description = imp.find_module('_metamodel', [dirname(__file__)])
        except ImportError:
            import _metamodel
            return _metamodel
        if fp is not None:
            try:
                _mod = imp.load_module('_metamodel', fp, pathname, description)
            finally:
                fp.close()
            return _mod
    _metamodel = swig_import_helper()
    del swig_import_helper
else:
    import _metamodel
del version_info
try:
    _swig_property = property
except NameError:
    pass # Python < 2.2 doesn't have 'property'.
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
    if (name == "thisown"): return self.this.own(value)
    if (name == "this"):
        if type(value).__name__ == 'SwigPyObject':
            self.__dict__[name] = value
            return
    method = class_type.__swig_setmethods__.get(name,None)
    if method: return method(self,value)
    if (not static):
        self.__dict__[name] = value
    else:
        raise AttributeError("You cannot add attributes to %s" % self)

def _swig_setattr(self,class_type,name,value):
    return _swig_setattr_nondynamic(self,class_type,name,value,0)

def _swig_getattr(self,class_type,name):
    if (name == "thisown"): return self.this.own()
    method = class_type.__swig_getmethods__.get(name,None)
    if method: return method(self)
    raise AttributeError(name)

def _swig_repr(self):
    try: strthis = "proxy of " + self.this.__repr__()
    except: strthis = ""
    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)

try:
    _object = object
    _newclass = 1
except AttributeError:
    class _object : pass
    _newclass = 0


class SwigPyIterator(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name)
    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_destroy__ = _metamodel.delete_SwigPyIterator
    __del__ = lambda self : None;
    def value(self): return _metamodel.SwigPyIterator_value(self)
    def incr(self, n=1): return _metamodel.SwigPyIterator_incr(self, n)
    def decr(self, n=1): return _metamodel.SwigPyIterator_decr(self, n)
    def distance(self, *args): return _metamodel.SwigPyIterator_distance(self, *args)
    def equal(self, *args): return _metamodel.SwigPyIterator_equal(self, *args)
    def copy(self): return _metamodel.SwigPyIterator_copy(self)
    def next(self): return _metamodel.SwigPyIterator_next(self)
    def __next__(self): return _metamodel.SwigPyIterator___next__(self)
    def previous(self): return _metamodel.SwigPyIterator_previous(self)
    def advance(self, *args): return _metamodel.SwigPyIterator_advance(self, *args)
    def __eq__(self, *args): return _metamodel.SwigPyIterator___eq__(self, *args)
    def __ne__(self, *args): return _metamodel.SwigPyIterator___ne__(self, *args)
    def __iadd__(self, *args): return _metamodel.SwigPyIterator___iadd__(self, *args)
    def __isub__(self, *args): return _metamodel.SwigPyIterator___isub__(self, *args)
    def __add__(self, *args): return _metamodel.SwigPyIterator___add__(self, *args)
    def __sub__(self, *args): return _metamodel.SwigPyIterator___sub__(self, *args)
    def __iter__(self): return self
SwigPyIterator_swigregister = _metamodel.SwigPyIterator_swigregister
SwigPyIterator_swigregister(SwigPyIterator)

GCC_VERSION = _metamodel.GCC_VERSION
class TestFailed:
    """TestFailed is used to raise an uniform exception in tests."""

    __type = "TestFailed"

    def __init__(self, reason=""):
        self.reason = reason

    def type(self):
        return TestFailed.__type

    def what(self):
        return self.reason

    def __str__(self):
        return TestFailed.__type + ": " + self.reason

    def __lshift__(self, ch):
        self.reason += ch
        return self

import openturns.base
import openturns.common
import openturns.wrapper
import openturns.typ
import openturns.statistics
import openturns.graph
import openturns.func
import openturns.geom
import openturns.diff
import openturns.optim
import openturns.solver
import openturns.algo
import openturns.experiment
import openturns.model_copula
import openturns.weightedexperiment
import openturns.orthogonalbasis
import openturns.randomvector
class MetaModelResult(openturns.common.PersistentObject):
    """
    Data structure containing a metamodel.

    Available constructor:
        MetaModelResult(model, metaModel, residuals, relativeErrors)

    Parameters
    ----------
    model : :class:`~openturns.NumericalMathFunction`
        Physical model approximated by a metamodel.
    metaModel : :class:`~openturns.NumericalMathFunction`
        Definition of the response surface(s) of the model's output(s).
    residuals : float sequence
        The residual values defined as follows for each output of the model:
        :math:`\\displaystyle \\frac{\\sqrt{\\sum_{i=1}^N (y_i - \\hat{y_i})^2}}{N}`
        with :math:`y_i` the :math:`N` model's values and :math:`\\hat{y_i}` the
        metamodel's values.
    relativeErrors : float sequence
        The relative errors defined as follows for each output of the model:
        :math:`\\displaystyle \\frac{\\sum_{i=1}^N (y_i - \\hat{y_i})^2}{N \\Var{\\vect{Y}}}`
        with :math:`\\vect{Y}` the vector of the :math:`N` model's values
        :math:`y_i` and :math:`\\hat{y_i}` the metamodel's values.

    Notes
    -----
    Structure created by the method run() of :class:`~openturns.KrigingAlgorithm`
    or :class:`~openturns.FunctionalChaosAlgorithm` and obtained thanks to the
    method getResult() of these classes.

    See also
    --------
    FunctionalChaosResult
    """
    __swig_setmethods__ = {}
    for _s in [openturns.common.PersistentObject]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, MetaModelResult, name, value)
    __swig_getmethods__ = {}
    for _s in [openturns.common.PersistentObject]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, MetaModelResult, name)
    def getClassName(self):
        """
        Accessor to the object's name.

        Returns
        -------
        class_name : str
            The object class name (`object.__class__.__name__`).
        """
        return _metamodel.MetaModelResult_getClassName(self)

    def setModel(self, *args):
        """
        Accessor to the model.

        Parameters
        ----------
        model : :class:`~openturns.NumericalMathFunction`
            Physical model approximated by a metamodel.
        """
        return _metamodel.MetaModelResult_setModel(self, *args)

    def getModel(self):
        """
        Accessor to the model.

        Returns
        -------
        model : :class:`~openturns.NumericalMathFunction`
            Physical model approximated by a metamodel.
        """
        return _metamodel.MetaModelResult_getModel(self)

    def setMetaModel(self, *args):
        """
        Accessor to the metamodel.

        Parameters
        ----------
        metaModel : :class:`~openturns.NumericalMathFunction`
            Metamodel.
        """
        return _metamodel.MetaModelResult_setMetaModel(self, *args)

    def getMetaModel(self):
        """
        Accessor to the metamodel.

        Returns
        -------
        metaModel : :class:`~openturns.NumericalMathFunction`
            Metamodel.
        """
        return _metamodel.MetaModelResult_getMetaModel(self)

    def setResiduals(self, *args):
        """
        Accessor to the residuals.

        Parameters
        ----------
        residuals : float sequence
            The residual values defined as follows for each output of the model:
            :math:`\\displaystyle \\frac{\\sqrt{\\sum_{i=1}^N (y_i - \\hat{y_i})^2}}{N}`
            with :math:`y_i` the :math:`N` model's values and :math:`\\hat{y_i}` the
            metamodel's values.
        """
        return _metamodel.MetaModelResult_setResiduals(self, *args)

    def getResiduals(self):
        """
        Accessor to the residuals.

        Returns
        -------
        residuals : float sequence
            The residual values defined as follows for each output of the model:
            :math:`\\displaystyle \\frac{\\sqrt{\\sum_{i=1}^N (y_i - \\hat{y_i})^2}}{N}`
            with :math:`y_i` the :math:`N` model's values and :math:`\\hat{y_i}` the
            metamodel's values.
        """
        return _metamodel.MetaModelResult_getResiduals(self)

    def setRelativeErrors(self, *args):
        """
        Accessor to the relative errors.

        Parameters
        ----------
        relativeErrors : float sequence
            The relative errors defined as follows for each output of the model:
            :math:`\\displaystyle \\frac{\\sum_{i=1}^N (y_i - \\hat{y_i})^2}{N \\Var{\\vect{Y}}}`
            with :math:`\\vect{Y}` the vector of the :math:`N` model's values
            :math:`y_i` and :math:`\\hat{y_i}` the metamodel's values.
        """
        return _metamodel.MetaModelResult_setRelativeErrors(self, *args)

    def getRelativeErrors(self):
        """
        Accessor to the relative errors.

        Returns
        -------
        relativeErrors : float sequence
            The relative errors  defined as follows for each output of the model:
            :math:`\\displaystyle \\frac{\\sum_{i=1}^N (y_i - \\hat{y_i})^2}{N \\Var{\\vect{Y}}}`
            with :math:`\\vect{Y}` the vector of the :math:`N` model's values
            :math:`y_i` and :math:`\\hat{y_i}` the metamodel's values.
        """
        return _metamodel.MetaModelResult_getRelativeErrors(self)

    def __repr__(self): return _metamodel.MetaModelResult___repr__(self)
    def __init__(self, *args): 
        this = _metamodel.new_MetaModelResult(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _metamodel.delete_MetaModelResult
    __del__ = lambda self : None;
MetaModelResult_swigregister = _metamodel.MetaModelResult_swigregister
MetaModelResult_swigregister(MetaModelResult)

class KrigingResult(MetaModelResult):
    """
    Kriging result.

    Notes
    -----
    Structure created by the method run() of a :class:`~openturns.KrigingAlgorithm`,
    and obtained thanks to the method getResult().

    Examples
    --------
    >>> import openturns as ot
    >>> f = ot.NumericalMathFunction(['x0'], ['y'], ['x0 * sin(x0)'])
    >>> sampleX = [[1.0], [2.0], [3.0], [4.0], [5.0], [6.0]]
    >>> sampleY = f(sampleX)
    >>> basis = ot.Basis([ot.NumericalMathFunction('x', 'x'), ot.NumericalMathFunction('x', 'x^2')])
    >>> covarianceModel = ot.GeneralizedExponential(1, 2.0, 2.0)
    >>> algoKriging = ot.KrigingAlgorithm(sampleX, sampleY, basis, covarianceModel)
    >>> algoKriging.run()
    >>> resKriging = algoKriging.getResult()
    >>> metaModel = resKriging.getMetaModel()
    >>> graph = metaModel.draw(0.0, 7.0)
    >>> cloud = ot.Cloud(sampleX, sampleY)
    >>> cloud.setPointStyle('fcircle')
    >>> graph.add(cloud)
    >>> graph.add(f.draw(0.0, 7.0))
    >>> graph.setColors(['black', 'blue', 'red'])

    """
    __swig_setmethods__ = {}
    for _s in [MetaModelResult]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, KrigingResult, name, value)
    __swig_getmethods__ = {}
    for _s in [MetaModelResult]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, KrigingResult, name)
    def getClassName(self):
        """
        Accessor to the object's name.

        Returns
        -------
        class_name : str
            The object class name (`object.__class__.__name__`).
        """
        return _metamodel.KrigingResult_getClassName(self)

    def __repr__(self): return _metamodel.KrigingResult___repr__(self)
    def __str__(self, offset=""): return _metamodel.KrigingResult___str__(self, offset)
    def getBasis(self):
        """
        Accessor to the basis of the generalized linear model.

        Returns
        -------
        basis : :class:`~openturns.Basis`
            Basis of the generalized linear model.

        """
        return _metamodel.KrigingResult_getBasis(self)

    def getTrendCoefficients(self):
        """
        Accessor to the coefficients of the generalized linear model of the trend.

        Parameters
        ----------
        trendCoef :  :class:`~openturns.NumericalSample` which size is the ouput dimension of :math:`f` and which dimension is :math:`p`.

        Notes
        -----
        Each point of the sample refers to the vector:

        .. math::
            \\left(\\beta_1, \\ldots, \\beta_p\\right)

        """
        return _metamodel.KrigingResult_getTrendCoefficients(self)

    def getCovarianceModels(self):
        """
        Accessor to the collection of covariance models.

        Returns
        -------
        covModelColl : list of :class:`~openturns.CovarianceModel` which size is the ouput dimension of :math:`f`.

        Notes
        -----
        Each covariance model refers to the function :math:`c_{\\vect{\\theta}}(\\vect{x}, \\vect{y})`.

        """
        return _metamodel.KrigingResult_getCovarianceModels(self)

    def getCovarianceCoefficients(self):
        """
        Accessor to the covariance coefficients.

        Returns
        -------
        covCoeff :   :class:`~openturns.NumericalSample` which size is the ouput dimension of :math:`f` and which dimension is :math:`p`.

        Notes
        -----
        Each point of the sample refers to the vector:

        .. math::
            \\Tr{\\vect{c}_{\\vect{\\theta}}(\\vect{x})}\\mat{C}^{-1}(\\vect{y}-\\mat{F}\\, \\tilde{\\vect{\\beta}})

        """
        return _metamodel.KrigingResult_getCovarianceCoefficients(self)

    def __init__(self, *args): 
        this = _metamodel.new_KrigingResult(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _metamodel.delete_KrigingResult
    __del__ = lambda self : None;
KrigingResult_swigregister = _metamodel.KrigingResult_swigregister
KrigingResult_swigregister(KrigingResult)

class MetaModelAlgorithm(openturns.common.PersistentObject):
    """
    Base class to compute a metamodel.

    Available constructor:
        MetaModelAlgorithm(*distribution, model*)

    Parameters
    ----------
    distribution : :class:`~openturns.Distribution`
        Joint probability density function of the physical input vector.
    model : :class:`~openturns.NumericalMathFunction`
        Physical model to be approximated by a metamodel.

    Notes
    -----
    A MetaModelAlgorithm object can be used only through its derived classes:

    - :class:`~openturns.KrigingAlgorithm`

    - :class:`~openturns.FunctionalChaosAlgorithm`
    """
    __swig_setmethods__ = {}
    for _s in [openturns.common.PersistentObject]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, MetaModelAlgorithm, name, value)
    __swig_getmethods__ = {}
    for _s in [openturns.common.PersistentObject]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, MetaModelAlgorithm, name)
    def getClassName(self):
        """
        Accessor to the object's name.

        Returns
        -------
        class_name : str
            The object class name (`object.__class__.__name__`).
        """
        return _metamodel.MetaModelAlgorithm_getClassName(self)

    def __repr__(self): return _metamodel.MetaModelAlgorithm___repr__(self)
    def setDistribution(self, *args):
        """
        Accessor to the joint probability density function of the physical input vector.

        Parameters
        ----------
        distribution : :class:`~openturns.Distribution`
            Joint probability density function of the physical input vector.
        """
        return _metamodel.MetaModelAlgorithm_setDistribution(self, *args)

    def getDistribution(self):
        """
        Accessor to the joint probability density function of the physical input vector.

        Returns
        -------
        distribution : :class:`~openturns.Distribution`
            Joint probability density function of the physical input vector.
        """
        return _metamodel.MetaModelAlgorithm_getDistribution(self)

    def run(self):
        """
        Compute the response surfaces.

        Notes
        -----
        It computes the response surfaces and creates a
        :class:`~openturns.MetaModelResult` structure containing all the results.
        """
        return _metamodel.MetaModelAlgorithm_run(self)

    def getInputSample(self):
        """
        Accessor to the input sample.

        Returns
        -------
        inputSample : 2D float sequence
            Input sample of a model evaluated apart.
        """
        return _metamodel.MetaModelAlgorithm_getInputSample(self)

    def getOutputSample(self):
        """
        Accessor to the output sample.

        Returns
        -------
        outputSample : 2D float sequence
            Output sample of a model evaluated apart.
        """
        return _metamodel.MetaModelAlgorithm_getOutputSample(self)

    def __init__(self, *args): 
        this = _metamodel.new_MetaModelAlgorithm(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _metamodel.delete_MetaModelAlgorithm
    __del__ = lambda self : None;
MetaModelAlgorithm_swigregister = _metamodel.MetaModelAlgorithm_swigregister
MetaModelAlgorithm_swigregister(MetaModelAlgorithm)

class LinearTaylor(openturns.common.PersistentObject):
    __swig_setmethods__ = {}
    for _s in [openturns.common.PersistentObject]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, LinearTaylor, name, value)
    __swig_getmethods__ = {}
    for _s in [openturns.common.PersistentObject]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, LinearTaylor, name)
    def getClassName(self):
        """
        Accessor to the object's name.

        Returns
        -------
        class_name : str
            The object class name (`object.__class__.__name__`).
        """
        return _metamodel.LinearTaylor_getClassName(self)

    def __repr__(self): return _metamodel.LinearTaylor___repr__(self)
    def run(self): return _metamodel.LinearTaylor_run(self)
    def getCenter(self): return _metamodel.LinearTaylor_getCenter(self)
    def getConstant(self): return _metamodel.LinearTaylor_getConstant(self)
    def getLinear(self): return _metamodel.LinearTaylor_getLinear(self)
    def getInputFunction(self): return _metamodel.LinearTaylor_getInputFunction(self)
    def getResponseSurface(self): return _metamodel.LinearTaylor_getResponseSurface(self)
    def __init__(self, *args): 
        this = _metamodel.new_LinearTaylor(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _metamodel.delete_LinearTaylor
    __del__ = lambda self : None;
LinearTaylor_swigregister = _metamodel.LinearTaylor_swigregister
LinearTaylor_swigregister(LinearTaylor)

class QuadraticTaylor(openturns.common.PersistentObject):
    __swig_setmethods__ = {}
    for _s in [openturns.common.PersistentObject]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, QuadraticTaylor, name, value)
    __swig_getmethods__ = {}
    for _s in [openturns.common.PersistentObject]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, QuadraticTaylor, name)
    def getClassName(self):
        """
        Accessor to the object's name.

        Returns
        -------
        class_name : str
            The object class name (`object.__class__.__name__`).
        """
        return _metamodel.QuadraticTaylor_getClassName(self)

    def __repr__(self): return _metamodel.QuadraticTaylor___repr__(self)
    def run(self): return _metamodel.QuadraticTaylor_run(self)
    def getCenter(self): return _metamodel.QuadraticTaylor_getCenter(self)
    def getConstant(self): return _metamodel.QuadraticTaylor_getConstant(self)
    def getLinear(self): return _metamodel.QuadraticTaylor_getLinear(self)
    def getQuadratic(self): return _metamodel.QuadraticTaylor_getQuadratic(self)
    def getInputFunction(self): return _metamodel.QuadraticTaylor_getInputFunction(self)
    def getResponseSurface(self): return _metamodel.QuadraticTaylor_getResponseSurface(self)
    def __init__(self, *args): 
        this = _metamodel.new_QuadraticTaylor(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _metamodel.delete_QuadraticTaylor
    __del__ = lambda self : None;
QuadraticTaylor_swigregister = _metamodel.QuadraticTaylor_swigregister
QuadraticTaylor_swigregister(QuadraticTaylor)

class LinearLeastSquares(openturns.common.PersistentObject):
    __swig_setmethods__ = {}
    for _s in [openturns.common.PersistentObject]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, LinearLeastSquares, name, value)
    __swig_getmethods__ = {}
    for _s in [openturns.common.PersistentObject]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, LinearLeastSquares, name)
    def getClassName(self):
        """
        Accessor to the object's name.

        Returns
        -------
        class_name : str
            The object class name (`object.__class__.__name__`).
        """
        return _metamodel.LinearLeastSquares_getClassName(self)

    def __repr__(self): return _metamodel.LinearLeastSquares___repr__(self)
    def run(self): return _metamodel.LinearLeastSquares_run(self)
    def getConstant(self): return _metamodel.LinearLeastSquares_getConstant(self)
    def getLinear(self): return _metamodel.LinearLeastSquares_getLinear(self)
    def getInputFunction(self): return _metamodel.LinearLeastSquares_getInputFunction(self)
    def getResponseSurface(self): return _metamodel.LinearLeastSquares_getResponseSurface(self)
    def getDataIn(self): return _metamodel.LinearLeastSquares_getDataIn(self)
    def setDataOut(self, *args): return _metamodel.LinearLeastSquares_setDataOut(self, *args)
    def getDataOut(self): return _metamodel.LinearLeastSquares_getDataOut(self)
    def __init__(self, *args): 
        this = _metamodel.new_LinearLeastSquares(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _metamodel.delete_LinearLeastSquares
    __del__ = lambda self : None;
LinearLeastSquares_swigregister = _metamodel.LinearLeastSquares_swigregister
LinearLeastSquares_swigregister(LinearLeastSquares)

class QuadraticLeastSquares(openturns.common.PersistentObject):
    __swig_setmethods__ = {}
    for _s in [openturns.common.PersistentObject]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, QuadraticLeastSquares, name, value)
    __swig_getmethods__ = {}
    for _s in [openturns.common.PersistentObject]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, QuadraticLeastSquares, name)
    def getClassName(self):
        """
        Accessor to the object's name.

        Returns
        -------
        class_name : str
            The object class name (`object.__class__.__name__`).
        """
        return _metamodel.QuadraticLeastSquares_getClassName(self)

    def __repr__(self): return _metamodel.QuadraticLeastSquares___repr__(self)
    def run(self): return _metamodel.QuadraticLeastSquares_run(self)
    def getConstant(self): return _metamodel.QuadraticLeastSquares_getConstant(self)
    def getLinear(self): return _metamodel.QuadraticLeastSquares_getLinear(self)
    def getQuadratic(self): return _metamodel.QuadraticLeastSquares_getQuadratic(self)
    def getInputFunction(self): return _metamodel.QuadraticLeastSquares_getInputFunction(self)
    def getResponseSurface(self): return _metamodel.QuadraticLeastSquares_getResponseSurface(self)
    def getDataIn(self): return _metamodel.QuadraticLeastSquares_getDataIn(self)
    def setDataOut(self, *args): return _metamodel.QuadraticLeastSquares_setDataOut(self, *args)
    def getDataOut(self): return _metamodel.QuadraticLeastSquares_getDataOut(self)
    def __init__(self, *args): 
        this = _metamodel.new_QuadraticLeastSquares(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _metamodel.delete_QuadraticLeastSquares
    __del__ = lambda self : None;
QuadraticLeastSquares_swigregister = _metamodel.QuadraticLeastSquares_swigregister
QuadraticLeastSquares_swigregister(QuadraticLeastSquares)

class AdaptiveStrategyImplementation(openturns.common.PersistentObject):
    __swig_setmethods__ = {}
    for _s in [openturns.common.PersistentObject]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, AdaptiveStrategyImplementation, name, value)
    __swig_getmethods__ = {}
    for _s in [openturns.common.PersistentObject]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, AdaptiveStrategyImplementation, name)
    def getClassName(self):
        """
        Accessor to the object's name.

        Returns
        -------
        class_name : str
            The object class name (`object.__class__.__name__`).
        """
        return _metamodel.AdaptiveStrategyImplementation_getClassName(self)

    def setMaximumDimension(self, *args): return _metamodel.AdaptiveStrategyImplementation_setMaximumDimension(self, *args)
    def getMaximumDimension(self): return _metamodel.AdaptiveStrategyImplementation_getMaximumDimension(self)
    def computeInitialBasis(self): return _metamodel.AdaptiveStrategyImplementation_computeInitialBasis(self)
    def updateBasis(self, *args): return _metamodel.AdaptiveStrategyImplementation_updateBasis(self, *args)
    def __repr__(self): return _metamodel.AdaptiveStrategyImplementation___repr__(self)
    def getBasis(self): return _metamodel.AdaptiveStrategyImplementation_getBasis(self)
    def getPsi(self): return _metamodel.AdaptiveStrategyImplementation_getPsi(self)
    def __init__(self, *args): 
        this = _metamodel.new_AdaptiveStrategyImplementation(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _metamodel.delete_AdaptiveStrategyImplementation
    __del__ = lambda self : None;
AdaptiveStrategyImplementation_swigregister = _metamodel.AdaptiveStrategyImplementation_swigregister
AdaptiveStrategyImplementation_swigregister(AdaptiveStrategyImplementation)

class FixedStrategy(AdaptiveStrategyImplementation):
    __swig_setmethods__ = {}
    for _s in [AdaptiveStrategyImplementation]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, FixedStrategy, name, value)
    __swig_getmethods__ = {}
    for _s in [AdaptiveStrategyImplementation]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, FixedStrategy, name)
    def getClassName(self):
        """
        Accessor to the object's name.

        Returns
        -------
        class_name : str
            The object class name (`object.__class__.__name__`).
        """
        return _metamodel.FixedStrategy_getClassName(self)

    def computeInitialBasis(self): return _metamodel.FixedStrategy_computeInitialBasis(self)
    def updateBasis(self, *args): return _metamodel.FixedStrategy_updateBasis(self, *args)
    def __repr__(self): return _metamodel.FixedStrategy___repr__(self)
    def __init__(self, *args): 
        this = _metamodel.new_FixedStrategy(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _metamodel.delete_FixedStrategy
    __del__ = lambda self : None;
FixedStrategy_swigregister = _metamodel.FixedStrategy_swigregister
FixedStrategy_swigregister(FixedStrategy)

class SequentialStrategy(AdaptiveStrategyImplementation):
    __swig_setmethods__ = {}
    for _s in [AdaptiveStrategyImplementation]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, SequentialStrategy, name, value)
    __swig_getmethods__ = {}
    for _s in [AdaptiveStrategyImplementation]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, SequentialStrategy, name)
    def getClassName(self):
        """
        Accessor to the object's name.

        Returns
        -------
        class_name : str
            The object class name (`object.__class__.__name__`).
        """
        return _metamodel.SequentialStrategy_getClassName(self)

    def computeInitialBasis(self): return _metamodel.SequentialStrategy_computeInitialBasis(self)
    def updateBasis(self, *args): return _metamodel.SequentialStrategy_updateBasis(self, *args)
    def __repr__(self): return _metamodel.SequentialStrategy___repr__(self)
    def __init__(self, *args): 
        this = _metamodel.new_SequentialStrategy(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _metamodel.delete_SequentialStrategy
    __del__ = lambda self : None;
SequentialStrategy_swigregister = _metamodel.SequentialStrategy_swigregister
SequentialStrategy_swigregister(SequentialStrategy)

class CleaningStrategy(AdaptiveStrategyImplementation):
    __swig_setmethods__ = {}
    for _s in [AdaptiveStrategyImplementation]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, CleaningStrategy, name, value)
    __swig_getmethods__ = {}
    for _s in [AdaptiveStrategyImplementation]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, CleaningStrategy, name)
    def getClassName(self):
        """
        Accessor to the object's name.

        Returns
        -------
        class_name : str
            The object class name (`object.__class__.__name__`).
        """
        return _metamodel.CleaningStrategy_getClassName(self)

    def computeInitialBasis(self): return _metamodel.CleaningStrategy_computeInitialBasis(self)
    def updateBasis(self, *args): return _metamodel.CleaningStrategy_updateBasis(self, *args)
    def __repr__(self): return _metamodel.CleaningStrategy___repr__(self)
    def getCurrentVectorIndex(self): return _metamodel.CleaningStrategy_getCurrentVectorIndex(self)
    def getMaximumSize(self): return _metamodel.CleaningStrategy_getMaximumSize(self)
    def setMaximumSize(self, *args): return _metamodel.CleaningStrategy_setMaximumSize(self, *args)
    def getSignificanceFactor(self): return _metamodel.CleaningStrategy_getSignificanceFactor(self)
    def setSignificanceFactor(self, *args): return _metamodel.CleaningStrategy_setSignificanceFactor(self, *args)
    def getVerbose(self): return _metamodel.CleaningStrategy_getVerbose(self)
    def setVerbose(self, *args): return _metamodel.CleaningStrategy_setVerbose(self, *args)
    def __init__(self, *args): 
        this = _metamodel.new_CleaningStrategy(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _metamodel.delete_CleaningStrategy
    __del__ = lambda self : None;
CleaningStrategy_swigregister = _metamodel.CleaningStrategy_swigregister
CleaningStrategy_swigregister(CleaningStrategy)

class AdaptiveStrategyImplementationTypedInterfaceObject(openturns.common.InterfaceObject):
    __swig_setmethods__ = {}
    for _s in [openturns.common.InterfaceObject]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, AdaptiveStrategyImplementationTypedInterfaceObject, name, value)
    __swig_getmethods__ = {}
    for _s in [openturns.common.InterfaceObject]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, AdaptiveStrategyImplementationTypedInterfaceObject, name)
    __repr__ = _swig_repr
    def __init__(self, *args): 
        this = _metamodel.new_AdaptiveStrategyImplementationTypedInterfaceObject(*args)
        try: self.this.append(this)
        except: self.this = this
    def getImplementation(self, *args):
        """
        Accessor to the underlying implementation.

        Returns
        -------
        impl : Implementation
            The implementation class.
        """
        return _metamodel.AdaptiveStrategyImplementationTypedInterfaceObject_getImplementation(self, *args)

    def setName(self, *args):
        """
        Accessor to the object's name.

        Parameters
        ----------
        name : string
            The name of the object.
        """
        return _metamodel.AdaptiveStrategyImplementationTypedInterfaceObject_setName(self, *args)

    def getName(self):
        """
        Accessor to the object's name.

        Returns
        -------
        name : string
            The name of the object.
        """
        return _metamodel.AdaptiveStrategyImplementationTypedInterfaceObject_getName(self)

    def __eq__(self, *args): return _metamodel.AdaptiveStrategyImplementationTypedInterfaceObject___eq__(self, *args)
    __swig_destroy__ = _metamodel.delete_AdaptiveStrategyImplementationTypedInterfaceObject
    __del__ = lambda self : None;
AdaptiveStrategyImplementationTypedInterfaceObject_swigregister = _metamodel.AdaptiveStrategyImplementationTypedInterfaceObject_swigregister
AdaptiveStrategyImplementationTypedInterfaceObject_swigregister(AdaptiveStrategyImplementationTypedInterfaceObject)

class AdaptiveStrategy(AdaptiveStrategyImplementationTypedInterfaceObject):
    __swig_setmethods__ = {}
    for _s in [AdaptiveStrategyImplementationTypedInterfaceObject]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, AdaptiveStrategy, name, value)
    __swig_getmethods__ = {}
    for _s in [AdaptiveStrategyImplementationTypedInterfaceObject]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, AdaptiveStrategy, name)
    def getClassName(self):
        """
        Accessor to the object's name.

        Returns
        -------
        class_name : str
            The object class name (`object.__class__.__name__`).
        """
        return _metamodel.AdaptiveStrategy_getClassName(self)

    def setMaximumDimension(self, *args): return _metamodel.AdaptiveStrategy_setMaximumDimension(self, *args)
    def getMaximumDimension(self): return _metamodel.AdaptiveStrategy_getMaximumDimension(self)
    def computeInitialBasis(self): return _metamodel.AdaptiveStrategy_computeInitialBasis(self)
    def updateBasis(self, *args): return _metamodel.AdaptiveStrategy_updateBasis(self, *args)
    def getBasis(self): return _metamodel.AdaptiveStrategy_getBasis(self)
    def getPsi(self): return _metamodel.AdaptiveStrategy_getPsi(self)
    def __repr__(self): return _metamodel.AdaptiveStrategy___repr__(self)
    def __str__(self, offset=""): return _metamodel.AdaptiveStrategy___str__(self, offset)
    def __init__(self, *args): 
        this = _metamodel.new_AdaptiveStrategy(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _metamodel.delete_AdaptiveStrategy
    __del__ = lambda self : None;
AdaptiveStrategy_swigregister = _metamodel.AdaptiveStrategy_swigregister
AdaptiveStrategy_swigregister(AdaptiveStrategy)

class ProjectionStrategyImplementation(openturns.common.PersistentObject):
    __swig_setmethods__ = {}
    for _s in [openturns.common.PersistentObject]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, ProjectionStrategyImplementation, name, value)
    __swig_getmethods__ = {}
    for _s in [openturns.common.PersistentObject]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, ProjectionStrategyImplementation, name)
    def getClassName(self):
        """
        Accessor to the object's name.

        Returns
        -------
        class_name : str
            The object class name (`object.__class__.__name__`).
        """
        return _metamodel.ProjectionStrategyImplementation_getClassName(self)

    def __repr__(self): return _metamodel.ProjectionStrategyImplementation___repr__(self)
    def setMeasure(self, *args): return _metamodel.ProjectionStrategyImplementation_setMeasure(self, *args)
    def getMeasure(self): return _metamodel.ProjectionStrategyImplementation_getMeasure(self)
    def getInputSample(self): return _metamodel.ProjectionStrategyImplementation_getInputSample(self)
    def getOutputSample(self): return _metamodel.ProjectionStrategyImplementation_getOutputSample(self)
    def getWeights(self): return _metamodel.ProjectionStrategyImplementation_getWeights(self)
    def getResidual(self): return _metamodel.ProjectionStrategyImplementation_getResidual(self)
    def getRelativeError(self): return _metamodel.ProjectionStrategyImplementation_getRelativeError(self)
    def getCoefficients(self): return _metamodel.ProjectionStrategyImplementation_getCoefficients(self)
    def setExperiment(self, *args): return _metamodel.ProjectionStrategyImplementation_setExperiment(self, *args)
    def getExperiment(self): return _metamodel.ProjectionStrategyImplementation_getExperiment(self)
    def computeCoefficients(self, *args): return _metamodel.ProjectionStrategyImplementation_computeCoefficients(self, *args)
    def __init__(self, *args): 
        this = _metamodel.new_ProjectionStrategyImplementation(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _metamodel.delete_ProjectionStrategyImplementation
    __del__ = lambda self : None;
ProjectionStrategyImplementation_swigregister = _metamodel.ProjectionStrategyImplementation_swigregister
ProjectionStrategyImplementation_swigregister(ProjectionStrategyImplementation)

class LeastSquaresStrategy(ProjectionStrategyImplementation):
    __swig_setmethods__ = {}
    for _s in [ProjectionStrategyImplementation]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, LeastSquaresStrategy, name, value)
    __swig_getmethods__ = {}
    for _s in [ProjectionStrategyImplementation]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, LeastSquaresStrategy, name)
    def getClassName(self):
        """
        Accessor to the object's name.

        Returns
        -------
        class_name : str
            The object class name (`object.__class__.__name__`).
        """
        return _metamodel.LeastSquaresStrategy_getClassName(self)

    def __repr__(self): return _metamodel.LeastSquaresStrategy___repr__(self)
    def computeCoefficients(self, *args): return _metamodel.LeastSquaresStrategy_computeCoefficients(self, *args)
    def __init__(self, *args): 
        this = _metamodel.new_LeastSquaresStrategy(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _metamodel.delete_LeastSquaresStrategy
    __del__ = lambda self : None;
LeastSquaresStrategy_swigregister = _metamodel.LeastSquaresStrategy_swigregister
LeastSquaresStrategy_swigregister(LeastSquaresStrategy)

class IntegrationStrategy(ProjectionStrategyImplementation):
    __swig_setmethods__ = {}
    for _s in [ProjectionStrategyImplementation]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, IntegrationStrategy, name, value)
    __swig_getmethods__ = {}
    for _s in [ProjectionStrategyImplementation]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, IntegrationStrategy, name)
    def getClassName(self):
        """
        Accessor to the object's name.

        Returns
        -------
        class_name : str
            The object class name (`object.__class__.__name__`).
        """
        return _metamodel.IntegrationStrategy_getClassName(self)

    def __repr__(self): return _metamodel.IntegrationStrategy___repr__(self)
    def computeCoefficients(self, *args): return _metamodel.IntegrationStrategy_computeCoefficients(self, *args)
    def __init__(self, *args): 
        this = _metamodel.new_IntegrationStrategy(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _metamodel.delete_IntegrationStrategy
    __del__ = lambda self : None;
IntegrationStrategy_swigregister = _metamodel.IntegrationStrategy_swigregister
IntegrationStrategy_swigregister(IntegrationStrategy)

class ProjectionStrategyImplementationTypedInterfaceObject(openturns.common.InterfaceObject):
    __swig_setmethods__ = {}
    for _s in [openturns.common.InterfaceObject]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, ProjectionStrategyImplementationTypedInterfaceObject, name, value)
    __swig_getmethods__ = {}
    for _s in [openturns.common.InterfaceObject]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, ProjectionStrategyImplementationTypedInterfaceObject, name)
    __repr__ = _swig_repr
    def __init__(self, *args): 
        this = _metamodel.new_ProjectionStrategyImplementationTypedInterfaceObject(*args)
        try: self.this.append(this)
        except: self.this = this
    def getImplementation(self, *args):
        """
        Accessor to the underlying implementation.

        Returns
        -------
        impl : Implementation
            The implementation class.
        """
        return _metamodel.ProjectionStrategyImplementationTypedInterfaceObject_getImplementation(self, *args)

    def setName(self, *args):
        """
        Accessor to the object's name.

        Parameters
        ----------
        name : string
            The name of the object.
        """
        return _metamodel.ProjectionStrategyImplementationTypedInterfaceObject_setName(self, *args)

    def getName(self):
        """
        Accessor to the object's name.

        Returns
        -------
        name : string
            The name of the object.
        """
        return _metamodel.ProjectionStrategyImplementationTypedInterfaceObject_getName(self)

    def __eq__(self, *args): return _metamodel.ProjectionStrategyImplementationTypedInterfaceObject___eq__(self, *args)
    __swig_destroy__ = _metamodel.delete_ProjectionStrategyImplementationTypedInterfaceObject
    __del__ = lambda self : None;
ProjectionStrategyImplementationTypedInterfaceObject_swigregister = _metamodel.ProjectionStrategyImplementationTypedInterfaceObject_swigregister
ProjectionStrategyImplementationTypedInterfaceObject_swigregister(ProjectionStrategyImplementationTypedInterfaceObject)

class ProjectionStrategy(ProjectionStrategyImplementationTypedInterfaceObject):
    __swig_setmethods__ = {}
    for _s in [ProjectionStrategyImplementationTypedInterfaceObject]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, ProjectionStrategy, name, value)
    __swig_getmethods__ = {}
    for _s in [ProjectionStrategyImplementationTypedInterfaceObject]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, ProjectionStrategy, name)
    def getClassName(self):
        """
        Accessor to the object's name.

        Returns
        -------
        class_name : str
            The object class name (`object.__class__.__name__`).
        """
        return _metamodel.ProjectionStrategy_getClassName(self)

    def setMeasure(self, *args): return _metamodel.ProjectionStrategy_setMeasure(self, *args)
    def getMeasure(self): return _metamodel.ProjectionStrategy_getMeasure(self)
    def getInputSample(self): return _metamodel.ProjectionStrategy_getInputSample(self)
    def getOutputSample(self): return _metamodel.ProjectionStrategy_getOutputSample(self)
    def getWeights(self): return _metamodel.ProjectionStrategy_getWeights(self)
    def getResidual(self): return _metamodel.ProjectionStrategy_getResidual(self)
    def getRelativeError(self): return _metamodel.ProjectionStrategy_getRelativeError(self)
    def getCoefficients(self): return _metamodel.ProjectionStrategy_getCoefficients(self)
    def setExperiment(self, *args): return _metamodel.ProjectionStrategy_setExperiment(self, *args)
    def getExperiment(self): return _metamodel.ProjectionStrategy_getExperiment(self)
    def computeCoefficients(self, *args): return _metamodel.ProjectionStrategy_computeCoefficients(self, *args)
    def __repr__(self): return _metamodel.ProjectionStrategy___repr__(self)
    def __str__(self, offset=""): return _metamodel.ProjectionStrategy___str__(self, offset)
    def __init__(self, *args): 
        this = _metamodel.new_ProjectionStrategy(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _metamodel.delete_ProjectionStrategy
    __del__ = lambda self : None;
ProjectionStrategy_swigregister = _metamodel.ProjectionStrategy_swigregister
ProjectionStrategy_swigregister(ProjectionStrategy)

class FunctionalChaosResult(MetaModelResult):
    """
    Functional chaos result.

    Notes
    -----
    Structure created by the method run() of
    :class:`~openturns.FunctionalChaosAlgorithm`, and obtained thanks to the method
    getResult().
    """
    __swig_setmethods__ = {}
    for _s in [MetaModelResult]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, FunctionalChaosResult, name, value)
    __swig_getmethods__ = {}
    for _s in [MetaModelResult]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, FunctionalChaosResult, name)
    def getClassName(self):
        """
        Accessor to the object's name.

        Returns
        -------
        class_name : str
            The object class name (`object.__class__.__name__`).
        """
        return _metamodel.FunctionalChaosResult_getClassName(self)

    def __repr__(self): return _metamodel.FunctionalChaosResult___repr__(self)
    def __str__(self, offset=""): return _metamodel.FunctionalChaosResult___str__(self, offset)
    def getDistribution(self):
        """
        Get the joint distribution of the physical input vector.

        Returns
        -------
        distribution : :class:`~openturns.Distribution`
            Joint distribution of the physical input vector
            :math:`f_{\\vect{X}}(\\vect{x})`.
        """
        return _metamodel.FunctionalChaosResult_getDistribution(self)

    def getTransformation(self):
        """
        Get the isoprobabilistic transformation.

        Returns
        -------
        transformation : :class:`~openturns.NumericalMathFunction`
            The isoprobabilistic transformation :math:`T` that transforms
            the input data into a data following the measure imposed by the selected
            orthonormal basis:
            :math:`T : \\Rset^{n_X}\\longrightarrow \\Rset^{n_X}, T(\\vect{X})=\\vect{U}`.
        """
        return _metamodel.FunctionalChaosResult_getTransformation(self)

    def getInverseTransformation(self):
        """
        Get the inverse isoprobabilistic transformation.

        Returns
        -------
        transformation : :class:`~openturns.NumericalMathFunction`
            The inverse isoprobabilistic transformation :math:`T^{-1}` that transforms
            the data distributed according to the measure imposed by the selected
            orthonormal basis into the input data:
            :math:`T^{-1}: \\Rset^{n_X}\\longrightarrow \\Rset^{n_X}, T^{-1}(\\vect{U})=\\vect{X}`
        """
        return _metamodel.FunctionalChaosResult_getInverseTransformation(self)

    def getComposedModel(self):
        """
        Get the composed model.

        Returns
        -------
        composedModel : :class:`~openturns.NumericalMathFunction`
            :math:`h` which is the composition of the physical model :math:`g` and the
            inverse isoprobabilistic transformation such as:
            :math:`h : \\vect{U} \\longrightarrow \\vect{Y}=g \\circ T^{-1}(\\vect{U})`.
            We have :math:`h=\\sum_{k\\in \\Nset} \\vect{a}_k \\Psi_k`.
        """
        return _metamodel.FunctionalChaosResult_getComposedModel(self)

    def getOrthogonalBasis(self):
        """
        Get the orthogonal basis.

        Returns
        -------
        basis : :class:`~openturns.OrthogonalBasis`
            Orthogonal basis.
        """
        return _metamodel.FunctionalChaosResult_getOrthogonalBasis(self)

    def getIndices(self):
        """
        Get the indices of the final basis.

        Returns
        -------
        indices : int sequence
            Collection of integers that represent the indices of the final basis.
        """
        return _metamodel.FunctionalChaosResult_getIndices(self)

    def getCoefficients(self):
        """
        Get the coefficients.

        Returns
        -------
        coefficients : 2D float sequence
            Collection of coefficients of the functional chaos
            :math:`(\\vect{a}_k)_{k \\in K}` with :math:`K` is a finite subset of
            :math:`\\Nset`.
        """
        return _metamodel.FunctionalChaosResult_getCoefficients(self)

    def getReducedBasis(self):
        """
        Get the reduced basis.

        Returns
        -------
        basis : list of :class:`~openturns.NumericalMathFunction`
            List of functions that correspond to the basis of the functional chaos
            :math:`(\\Psi_k)_{k\\in K}` with :math:`K` is a finite subset of
            :math:`\\Nset`.
        """
        return _metamodel.FunctionalChaosResult_getReducedBasis(self)

    def getComposedMetaModel(self):
        """
        Get the composed metamodel.

        Returns
        -------
        composedMetamodel : :class:`~openturns.NumericalMathFunction`
            :math:`\\hat{h}=\\sum_{k\\in K} \\vect{a}_k \\Psi_k` with :math:`K` is a
            finite subset of :math:`\\Nset`.
        """
        return _metamodel.FunctionalChaosResult_getComposedMetaModel(self)

    def __init__(self, *args): 
        this = _metamodel.new_FunctionalChaosResult(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _metamodel.delete_FunctionalChaosResult
    __del__ = lambda self : None;
FunctionalChaosResult_swigregister = _metamodel.FunctionalChaosResult_swigregister
FunctionalChaosResult_swigregister(FunctionalChaosResult)

class FunctionalChaosAlgorithm(MetaModelAlgorithm):
    """
    Functional chaos algorithm.

    Available constructors:
        FunctionalChaosAlgorithm(*inputSample, outputSample*)

        FunctionalChaosAlgorithm(*inputSample, outputSample, distribution, adaptiveStrategy*)

        FunctionalChaosAlgorithm(*inputSample, outputSample, distribution, adaptiveStrategy, projectionStrategy*)

        FunctionalChaosAlgorithm(*model, distribution, adaptiveStrategy*)

        FunctionalChaosAlgorithm(*model, distribution, adaptiveStrategy, projectionStrategy*)

        FunctionalChaosAlgorithm(*inputSample, weights, outputSample, distribution, adaptiveStrategy*)

        FunctionalChaosAlgorithm(*inputSample, weights, outputSample, distribution, adaptiveStrategy, projectionStrategy*)

    Parameters
    ----------
    inputSample, outputSample : 2D float sequences
        The input random variables :math:`\\vect{X}=(X_1, \\dots, X_{n_X})^T`
        and the output samples :math:`\\vect{Y}` of a model evaluated apart.
    model : :class:`~openturns.NumericalMathFunction`
        Physical model :math:`g` such as :math:`\\vect{Y} = g(\\vect{X})` that
        behaves as a :class:`~openturns.NumericalMathFunction`. When
        :math:`\\vect{Y}` is of dimension :math:`n_Y>1`, OpenTURNS operates marginal
        by marginal, using the same multivariate orthonormal basis
        :math:`(\\Psi_k(\\vect{x}))_{k \\in \\Nset^{n_X}}` for all the marginals.
    distribution : :class:`~openturns.Distribution`
        Joint probability density function :math:`f_{\\vect{X}}(\\vect{x})`
        of the physical input vector :math:`\\vect{X}`.
    adaptiveStrategy : :class:`~openturns.AdaptiveStrategy`
        Strategy of selection of the different terms of the multivariate basis.
    projectionStrategy : :class:`~openturns.ProjectionStrategy`
        Defines the strategy of projection of the empirical model results in the
        selected orthonormal basis. If it is not mentioned, the projection
        strategy considered is the :class:`~openturns.LeastSquaresStrategy`.
    weights : float sequence
        Weights of each point of the *inputSample*. The weights :math:`\\omega_i`
        are determined such that
        :math:`\\sum_{i\\in I}\\omega_i \\delta_{\\vect{X}_i} \\simeq p_{\\vect{X}}`,
        where :math:`p_{\\vect{X}}` is the distribution of the input random vector
        :math:`\\vect{X}`. When not specified, the *weights* are all equal to:
        :math:`\\omega_i = \\frac{1}{cardI}`

    Notes
    -----
    Consider a physical model :math:`g` depending
    on a set random variables :math:`\\vect{X}=(X_1, \\dots, X_{n_X})^T`.
    We call functional chaos expansion the class of spectral methods which gathers
    all types of response surface that can be seen as a projection of the physical
    model in an orthonormal basis. This class of methods uses the Hilbertian space
    (square-integrable space: :math:`L^2`) to construct the response surface.

    The functional chaos representation implemented in OpenTURNS is the
    polynomial chaos (PC) expansion. It allows one to cast the response as a
    converging series featuring orthonormal polynomials.

    Consider that the output random variable of interest
    :math:`\\vect{Y} = g(\\vect{X})` has a finite variance, i.e.
    :math:`\\Var{g(\\vect{X})} < \\infty`

    Then it is shown that :math:`\\vect{Y}` may be expanded onto the PC basis as
    follows:

    .. math::

        g(\\vect{X}) = \\sum_{j=0}^{\\infty} \\vect{a}_j \\Psi_j(\\vect{X})\\circ T(\\vect{X})

    where the :math:`\\vect{a}_j=(a_{j,1}, \\dots, a_{j,n_Y})`'s are
    deterministic vectors of coefficients that fully characterize the response
    :math:`\\vect{Y}`. :math:`\\Psi_j`'s are multivariate polynomials that are
    orthonormal with respect to the joint probability density function (PDF)
    :math:`f_{\\vect{X}}(\\vect{x})` of :math:`\\vect{X}`. :math:`T` is the
    isoprobabilistic transformation which enables to rescale
    the components :math:`X_i` of random vector :math:`\\vect{X}` such as:

    .. math::

        Y \\equiv h(\\vect{U}) &= g \\circ T^{-1}(\\vect{U}) \\\\
                             &= \\sum_{j=0}^{\\infty} \\vect{a}_j \\Psi_j(\\vect{U})

    with :math:`\\vect{U} = T(\\vect{X})`

    Consider the case of independent input random variables. The PDF may be cast as:

    .. math::

        f_{\\vect{X}}(\\vect{x}) = \\prod_{i=1}^{n_X} f_{X_i}(x_i)

    where :math:`f_{X_i}(x_i)` is the marginal PDF of :math:`X_i`.
    Let us consider a family :math:`\\{\\pi_j^{(i)}, j \\in \\Nset\\}` of orthonormal
    univariate polynomials with respect to :math:`f_{X_i}`, i.e.:

    .. math::

        \\left<\\pi_j^{(i)}(U_i), \\pi_k^{(i)}(U_i)\\right>
            &\\equiv \\Expect{\\pi_j^{(i)}(U_i), \\pi_k^{(i)}(U_i)} \\\\
            &= \\delta_{j,k}

    where :math:`\\delta_{j,k}=1` if :math:`j=k` and :math:`0` otherwise.
    For more details on the selection of suitable families of orthogonal
    polynomials see :class:`~openturns.StandardDistributionPolynomialFactory`.
    Upon tensoring the :math:`n_X` resulting families of univariate polynomials,
    one gets a set of orthonormal multivariate polynomials
    :math:`\\{\\Psi_{\\vect{\\alpha}}, \\vect{\\alpha} \\in \\Nset^{n_X}\\}` defined by:

    .. math::

        \\Psi_{\\vect{\\alpha}}(\\vect{u}) \\equiv \\pi_{\\alpha_1}^{(1)}(u_1)
                          \\times \\dots \\times \\pi_{\\alpha_{n_X}}^{({n_X})}(u_{n_X})

    where the multi-index notation
    :math:`\\vect{\\alpha} \\equiv \\{\\alpha_1, \\dots, \\alpha_{n_X}\\}` has been
    introduced.


    For computational purpose, it is necessary to retain a finite number of
    terms by truncating the expansion. The metamodel :math:`\\hat{g}(\\vect{X})` is
    then represented by a *finite* subset of coefficients
    :math:`\\{\\vect{a}_k, k \\in K\\}` in a *truncated* basis
    :math:`\\{\\Psi_k, k \\in K\\}` as follows:

    .. math::

        \\hat{g}(\\vect{X}) = \\sum_{k \\in K} \\vect{a}_k \\Psi_k \\circ T(\\vect{X})

    with :math:`K` a finite subset of :math:`\\Nset`.

    So, a specific strategy for enumerating the infinite PC series has to be
    defined (see :class:`~openturns.EnumerateFunction`). Then, it is possible to
    use several strategies in order to truncate the representation (see
    :class:`~openturns.AdaptiveStrategy`). Finally, to characterize
    :math:`\\vect{Y}`, the PC coefficients are estimated thanks to a
    :class:`projection strategy <openturns.ProjectionStrategy>`.

    See also
    --------
    FunctionalChaosResult

    Examples
    --------
    >>> import openturns as ot
    >>> ot.RandomGenerator.SetSeed(0)
    >>> # Define the model
    >>> inputDim = 1
    >>> model = ot.NumericalMathFunction(['x'], ['y'], ['x*sin(x)'])
    >>> # Create the input distribution
    >>> distribution = ot.ComposedDistribution([ot.Uniform()]*inputDim)
    >>> # Construction of the multivariate orthonormal basis
    >>> polyColl = [0.]*inputDim
    >>> for i in range(distribution.getDimension()):
    ...     polyColl[i] = ot.StandardDistributionPolynomialFactory(distribution.getMarginal(i))
    >>> enumerateFunction = ot.LinearEnumerateFunction(inputDim)
    >>> productBasis = ot.OrthogonalProductPolynomialFactory(polyColl, enumerateFunction)
    >>> # Truncature strategy of the multivariate orthonormal basis
    >>> # We choose all the polynomials of degree <= 4
    >>> degree = 4
    >>> indexMax = enumerateFunction.getStrataCumulatedCardinal(degree)
    >>> print(indexMax)
    5
    >>> # We keep all the polynomials of degree <= 4
    >>> # which corresponds to the 5 first ones
    >>> adaptiveStrategy = ot.FixedStrategy(productBasis, indexMax)
    >>> # Evaluation strategy of the approximation coefficients
    >>> samplingSize = 50
    >>> experiment = ot.MonteCarloExperiment(samplingSize)
    >>> projectionStrategy = ot.LeastSquaresStrategy(experiment)
    >>> # Creation of the Functional Chaos Algorithm
    >>> algo = ot.FunctionalChaosAlgorithm(model, distribution, adaptiveStrategy,
    ...                                    projectionStrategy)
    >>> algo.run()
    >>> # Get the result
    >>> functionalChaosResult = algo.getResult()
    >>> metamodel = functionalChaosResult.getMetaModel()
    >>> # Tests
    >>> X = [0.5]
    >>> print(model(X))
    [0.239713]
    >>> print(metamodel(X))
    [0.239514]
    """
    __swig_setmethods__ = {}
    for _s in [MetaModelAlgorithm]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, FunctionalChaosAlgorithm, name, value)
    __swig_getmethods__ = {}
    for _s in [MetaModelAlgorithm]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, FunctionalChaosAlgorithm, name)
    def getClassName(self):
        """
        Accessor to the object's name.

        Returns
        -------
        class_name : str
            The object class name (`object.__class__.__name__`).
        """
        return _metamodel.FunctionalChaosAlgorithm_getClassName(self)

    def __repr__(self): return _metamodel.FunctionalChaosAlgorithm___repr__(self)
    def setMaximumResidual(self, *args):
        """
        Set the maximum residual.

        Parameters
        ----------
        residual : float
            Residual value needed in the projection strategy. By default, its value
            is :math:`0`.
        """
        return _metamodel.FunctionalChaosAlgorithm_setMaximumResidual(self, *args)

    def getMaximumResidual(self):
        """
        Get the maximum residual.

        Returns
        -------
        residual : float
            Residual value needed in the projection strategy. By default, its value
            is :math:`0`.
        """
        return _metamodel.FunctionalChaosAlgorithm_getMaximumResidual(self)

    def setProjectionStrategy(self, *args):
        """
        Set the projection strategy.

        Parameters
        ----------
        strategy : :class:`~openturns.ProjectionStrategy`
            Projection strategy of the :class:`~openturns.FunctionalChaosAlgorithm`.
        """
        return _metamodel.FunctionalChaosAlgorithm_setProjectionStrategy(self, *args)

    def getProjectionStrategy(self):
        """
        Get the projection strategy.

        Returns
        -------
        strategy : :class:`~openturns.ProjectionStrategy`
            Projection strategy of the :class:`~openturns.FunctionalChaosAlgorithm`.
        """
        return _metamodel.FunctionalChaosAlgorithm_getProjectionStrategy(self)

    def run(self):
        """
        Compute the response surfaces.

        Notes
        -----
        Execute the procedure of determination of coefficients using the projection
        strategy selected with respect to the AdaptiveStrategy selected. It provides
        the results as an object of type :class:`~openturns.FunctionalChaosResult`,
        recoverable thanks to the method :py:meth:`getResult`.
        """
        return _metamodel.FunctionalChaosAlgorithm_run(self)

    def getResult(self):
        """
        Get the results of the metamodel computation.

        Returns
        -------
        result : :class:`~openturns.FunctionalChaosResult`
            Structure containing all the results obtained after metamodel computation
            and created by the method :py:meth:`run`.
        """
        return _metamodel.FunctionalChaosAlgorithm_getResult(self)

    def getInputSample(self):
        """
        Accessor to the input sample.

        Returns
        -------
        inputSample : 2D float sequence
            Input sample of a model evaluated apart.
        """
        return _metamodel.FunctionalChaosAlgorithm_getInputSample(self)

    def getOutputSample(self):
        """
        Accessor to the output sample.

        Returns
        -------
        outputSample : 2D float sequence
            Output sample of a model evaluated apart.
        """
        return _metamodel.FunctionalChaosAlgorithm_getOutputSample(self)

    def __init__(self, *args): 
        this = _metamodel.new_FunctionalChaosAlgorithm(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _metamodel.delete_FunctionalChaosAlgorithm
    __del__ = lambda self : None;
FunctionalChaosAlgorithm_swigregister = _metamodel.FunctionalChaosAlgorithm_swigregister
FunctionalChaosAlgorithm_swigregister(FunctionalChaosAlgorithm)

class KrigingAlgorithm(MetaModelAlgorithm):
    """
    Kriging algorithm.

    Available constructors:
        KrigingAlgorithm(*inputSample, outputSample, basis, covarianceModel, normalize=True*)

        KrigingAlgorithm(*inputSample, inputDistribution, outputSample, basis, covarianceModel*)

    Parameters
    ----------
    inputSample, outputSample : 2D float sequences
        The input and output samples of a model evaluated apart.
    inputDistribution : :class:`~openturns.Distribution`
        Joint probability density function of the physical input vector.
        If *inputDistribution* is not specified, the *inputSample* is assumed
        to be normally-distributed.
    basis : :class:`~openturns.Basis`
        Basis of the output of the regression.
    covarianceModel : :class:`~openturns.CovarianceModel`
        Correlation function.
    normalize : bool, optional
        If *True*, *inputSample* is normalized.

    Notes
    -----
    Kriging (also known as Gaussian process regression) is a Bayesian technique
    that aim at approximating functions (most often in order to surrogate it
    because it is expensive to evaluate). In the following it is assumed we aim at
    surrogating a scalar-valued model :math:`\\cM: \\vect{x} \\mapsto y`. Note the
    OpenTURNS implementation of Kriging can deal with vector-valued functions
    (:math:`\\cM: \\vect{x} \\mapsto \\vect{y}`), but it simply loops over each output.
    It is also assumed the model was runned over a design of experiments in order
    to produce a set of observations gathered in the following dataset:
    :math:`\\left(\\left(\\vect{x}^{(i)}, y^{(i)}\\right), i = 1, \\ldots, m\\right)`.
    Ultimately Kriging aims at producing a predictor (also known as a response
    surface or metamodel) denoted as :math:`\\tilde{\\cM}`.

    We put the following Gaussian process prior on the model :math:`\\cM`:

    .. math::

        Y(\\vect{x}) = \\Tr{\\vect{f}(\\vect{x})} \\vect{\\beta} + Z(\\vect{x})

    where :math:`\\Tr{\\vect{f}(\\vect{x})} \\vect{\\beta}` is a generalized linear
    model based upon a functional basis
    :math:`\\vect{f} = \\left(f_j, j = 1, \\ldots, p\\right)` and a vector of
    coefficients :math:`\\vect{\\beta} = \\left(\\beta_j, j = 1, \\ldots, p\\right)`.
    :math:`Z(\\vect{x})` is a zero-mean gaussian process with a stationary
    autocorrelation function depending on the distance between samples:

    .. math::

        \\mathbb{E}[Z(\\vect{x}), Z(\\vect{x'})] = \\sigma^2 R(\\vect{x} - \\vect{x'}, \\vect{\\theta})

    where :math:`\\sigma^2 > 0` is the variance and :math:`R` is the correlation
    function that solely depends on the Manhattan distance between input points
    :math:`\\vect{x} - \\vect{x'}` and a vector of parameters
    :math:`\\vect{\\theta} \\in \\Rset^{n_\\theta}`.

    Examples
    --------
    >>> import openturns as ot
    >>> f = ot.NumericalMathFunction(['x0'], ['f0'], ['x0 * sin(x0)'])
    >>> inputSample = ot.NumericalSample([[1.], [3.], [5.], [6.,], [7.], [8.]])
    >>> outputSample = f(inputSample)
    >>> # Create the algorithm
    >>> basis = ot.ConstantBasisFactory().build()
    >>> covarianceModel = ot.SquaredExponential(1)
    >>> algo = ot.KrigingAlgorithm(inputSample, outputSample, basis, covarianceModel)
    >>> algo.run()
    >>> # Get the results
    >>> result = algo.getResult()
    >>> metamodel = result.getMetaModel()
    """
    __swig_setmethods__ = {}
    for _s in [MetaModelAlgorithm]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, KrigingAlgorithm, name, value)
    __swig_getmethods__ = {}
    for _s in [MetaModelAlgorithm]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, KrigingAlgorithm, name)
    def getClassName(self):
        """
        Accessor to the object's name.

        Returns
        -------
        class_name : str
            The object class name (`object.__class__.__name__`).
        """
        return _metamodel.KrigingAlgorithm_getClassName(self)

    def __repr__(self): return _metamodel.KrigingAlgorithm___repr__(self)
    def setOptimizer(self, *args):
        """
        Set the solver used to optimize the covariance model parameters.

        Parameters
        ----------
        algorithm : :class:`~openturns.BoundConstrainedAlgorithm`
            Solver used to optimize the covariance model parameters.
        """
        return _metamodel.KrigingAlgorithm_setOptimizer(self, *args)

    def getOptimizer(self):
        """
        Get the solver used to optimize the covariance model parameters.

        Returns
        -------
        algorithm : :class:`~openturns.BoundConstrainedAlgorithm`
            Solver used to optimize the covariance model parameters.
        """
        return _metamodel.KrigingAlgorithm_getOptimizer(self)

    def run(self):
        """
        Compute the response surfaces.

        Notes
        -----
        It computes the response surfaces and creates a
        :class:`~openturns.MetaModelResult` structure containing all the results.
        """
        return _metamodel.KrigingAlgorithm_run(self)

    def setInputTransformation(self, *args):
        """
        Set the function normalizing the input.

        Parameters
        ----------
        transformation : :class:`~openturns.NumericalMathFunction`
            Function normalizing the input.
        """
        return _metamodel.KrigingAlgorithm_setInputTransformation(self, *args)

    def getInputTransformation(self):
        """
        Get the function normalizing the input.

        Returns
        -------
        transformation : :class:`~openturns.NumericalMathFunction`
            Function normalizing the input.
        """
        return _metamodel.KrigingAlgorithm_getInputTransformation(self)

    def getInputSample(self):
        """
        Accessor to the input sample.

        Returns
        -------
        inputSample : 2D float sequence
            Input sample of a model evaluated apart.
        """
        return _metamodel.KrigingAlgorithm_getInputSample(self)

    def getOutputSample(self):
        """
        Accessor to the output sample.

        Returns
        -------
        outputSample : 2D float sequence
            Output sample of a model evaluated apart.
        """
        return _metamodel.KrigingAlgorithm_getOutputSample(self)

    def getResult(self):
        """
        Get the results of the metamodel computation.

        Returns
        -------
        result : :class:`~openturns.MetaModelResult`
            Structure containing all the results obtained after metamodel computation
            and created by the method :py:meth:`run`.
        """
        return _metamodel.KrigingAlgorithm_getResult(self)

    def getLogLikelihoodFunction(self, *args): return _metamodel.KrigingAlgorithm_getLogLikelihoodFunction(self, *args)
    def __init__(self, *args): 
        this = _metamodel.new_KrigingAlgorithm(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _metamodel.delete_KrigingAlgorithm
    __del__ = lambda self : None;
KrigingAlgorithm_swigregister = _metamodel.KrigingAlgorithm_swigregister
KrigingAlgorithm_swigregister(KrigingAlgorithm)

class PythonRandomVector(object):
    """
    Allow to override RandomVector from Python.

    Parameters
    ----------
    dim : positive int
        the vector dimension
        Default is 0.
    """
    def __init__(self, dim=0):
        # Warning: these names are used in PythonRandomVectorImplementation class. Synchronize the files if changed
        self.__dim = dim
        self.__desc = list(map(lambda i: 'x' + str(i), range(dim)))

    def __str__(self):
        return 'PythonRandomVector -> %s #%d' % (self.__desc, self.__dim)

    def __repr__(self):
        return self.__str__()

    def getDimension(self):
        return self.__dim

    def setDescription(self, desc):
        if (len(desc) != self.__dim):
            raise ValueError('Description size does NOT match dimension')
        self.__desc = desc

    def getDescription(self):
        return self.__desc

    def getRealization(self):
        raise RuntimeError('You must define a method getRealization() -> X, where X is a NumericalPoint')

    def getMean(self):
        raise RuntimeError('You must define a method mean -> X, where X is a NumericalPoint')

    def getCovariance(self):
        raise RuntimeError('You must define a method var -> M, where M is a CovarianceMatrix')

class SciPyRandomVector(PythonRandomVector):
    """
    Build a PythonRandomVector from a scipy distribution.

    Parameters
    ----------
    dist : a scipy.stats distribution
        the distribution to wrap
    """
    def __init__(self, dist):
        super(SciPyRandomVector, self).__init__(1)
        if dist.__class__.__name__ != 'rv_frozen':
            raise TypeError('Argument is not a scipy distribution')
        self._dist = dist

    def getRealization(self):
        rvs = self._dist.rvs()
        return [rvs]

    def getSample(self, size):
        rvs = self._dist.rvs(size)
        return rvs.reshape(size, 1)

    def getMean(self):
        mean = float(self._dist.stats('m'))
        return [mean]

    def getCovariance(self):
        var = float(self._dist.stats('v'))
        return [[var]]


class RandomVectorImplementationTypedInterfaceObject(openturns.common.InterfaceObject):
    __swig_setmethods__ = {}
    for _s in [openturns.common.InterfaceObject]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, RandomVectorImplementationTypedInterfaceObject, name, value)
    __swig_getmethods__ = {}
    for _s in [openturns.common.InterfaceObject]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, RandomVectorImplementationTypedInterfaceObject, name)
    __repr__ = _swig_repr
    def __init__(self, *args): 
        this = _metamodel.new_RandomVectorImplementationTypedInterfaceObject(*args)
        try: self.this.append(this)
        except: self.this = this
    def getImplementation(self, *args):
        """
        Accessor to the underlying implementation.

        Returns
        -------
        impl : Implementation
            The implementation class.
        """
        return _metamodel.RandomVectorImplementationTypedInterfaceObject_getImplementation(self, *args)

    def setName(self, *args):
        """
        Accessor to the object's name.

        Parameters
        ----------
        name : string
            The name of the object.
        """
        return _metamodel.RandomVectorImplementationTypedInterfaceObject_setName(self, *args)

    def getName(self):
        """
        Accessor to the object's name.

        Returns
        -------
        name : string
            The name of the object.
        """
        return _metamodel.RandomVectorImplementationTypedInterfaceObject_getName(self)

    def __eq__(self, *args): return _metamodel.RandomVectorImplementationTypedInterfaceObject___eq__(self, *args)
    __swig_destroy__ = _metamodel.delete_RandomVectorImplementationTypedInterfaceObject
    __del__ = lambda self : None;
RandomVectorImplementationTypedInterfaceObject_swigregister = _metamodel.RandomVectorImplementationTypedInterfaceObject_swigregister
RandomVectorImplementationTypedInterfaceObject_swigregister(RandomVectorImplementationTypedInterfaceObject)

class RandomVector(RandomVectorImplementationTypedInterfaceObject):
    """
    Random vectors.

    Available constructors:
        RandomVector(*points*)

        RandomVector(*distribution*)

        RandomVector(*distribution, randomParameters*)

        RandomVector(*function, antecedent*)

        RandomVector(*functionalChaosResult*)

    Parameters
    ----------
    points : float sequence
        Sequence of values defining a :class:`~openturns.ConstantRandomVector`.
    distribution : :class:`~openturns.Distribution`
        Distribution of the :class:`~openturns.UsualRandomVector` to define.
    randomParameters : :class:`~openturns.RandomVector`
        RandomVector to define a distribution-based conditional vector.
        It defines random parameters for *distribution*.
    antecedent : :class:`~openturns.RandomVector`
        RandomVector :math:`\\underline{X}` of Usual type to define a
        :class:`~openturns.CompositeRandomVector` as the image through the function
        :math:`f` of :math:`\\underline{X}`: :math:`\\underline{Y}=f(\\underline{X})`.
    function : :class:`~openturns.NumericalMathFunction`
        Function :math:`f` to define a :class:`~openturns.CompositeRandomVector` as
        the image through this function of the antecedent :math:`\\underline{X}`:
        :math:`\\underline{Y}=f(\\underline{X})`.
    functionalChaosResult : :class:`~openturns.FunctionalChaosResult`
        Result to define a :class:`~openturns.FunctionalChaosRandomVector` as the
        image through a functional chaos approximation model of the associated
        :class:`~openturns.UsualRandomVector`.


    See also
    --------
    UsualRandomVector, CompositeRandomVector, ConditionalRandomVector,
    ConstantRandomVector, PosteriorRandomVector, FunctionalChaosRandomVector, Event
    """
    __swig_setmethods__ = {}
    for _s in [RandomVectorImplementationTypedInterfaceObject]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, RandomVector, name, value)
    __swig_getmethods__ = {}
    for _s in [RandomVectorImplementationTypedInterfaceObject]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, RandomVector, name)
    def getClassName(self):
        """
        Accessor to the object's name.

        Returns
        -------
        class_name : str
            The object class name (`object.__class__.__name__`).
        """
        return _metamodel.RandomVector_getClassName(self)

    def __repr__(self): return _metamodel.RandomVector___repr__(self)
    def __str__(self, offset=""): return _metamodel.RandomVector___str__(self, offset)
    def setDescription(self, *args):
        """
        Accessor to the description of the RandomVector.

        Parameters
        ----------
        description : string or list of strings
            Describes the components of the RandomVector.
        """
        return _metamodel.RandomVector_setDescription(self, *args)

    def getDescription(self):
        """
        Accessor to the description of the RandomVector.

        Returns
        -------
        description : string or list of strings
            Describes the components of the RandomVector.
        """
        return _metamodel.RandomVector_getDescription(self)

    def isComposite(self):
        """
        Accessor to know if the RandomVector is a composite one.

        Returns
        -------
        isComposite : Bool
            Indicates if the RandomVector is of type Composite or not.
        """
        return _metamodel.RandomVector_isComposite(self)

    def getDimension(self):
        """
        Accessor to the dimension of the RandomVector.

        Returns
        -------
        dimension : positive int
            Dimension of the RandomVector.
        """
        return _metamodel.RandomVector_getDimension(self)

    def getRealization(self):
        """
        Compute one realization of the RandomVector.

        Returns
        -------
        aRealization : float sequence
            Sequence of values randomly determined from the RandomVector definition.
            In the case of an event: one realization of the event (considered as a
            Bernoulli variable) which is a boolean value (1 for the realization of the
            event and 0 else).

        See also
        --------
        getSample

        Examples
        --------
        >>> import openturns as ot
        >>> distribution = ot.Normal([0., 0.], [1., 1.], ot.CorrelationMatrix(2))
        >>> randomVector = ot.RandomVector(distribution)
        >>> ot.RandomGenerator.SetSeed(0)
        >>> print(randomVector.getRealization())
        [0.608202,-1.26617]
        >>> print(randomVector.getRealization())
        [-0.438266,1.20548]
        """
        return _metamodel.RandomVector_getRealization(self)

    def getSample(self, *args):
        """
        Compute realizations of the RandomVector.

        Parameters
        ----------
        n : int, :math:`n \\geq 0`
            Number of realizations needed.

        Returns
        -------
        realizations : 2D float sequence
            n sequences of values randomly determined from the RandomVector definition.
            In the case of an event: n realizations of the event (considered as a
            Bernoulli variable) which are boolean values (1 for the realization of the
            event and 0 else).

        See also
        --------
        getRealization

        Examples
        --------
        >>> import openturns as ot
        >>> distribution = ot.Normal([0., 0.], [1., 1.], ot.CorrelationMatrix(2))
        >>> randomVector = ot.RandomVector(distribution)
        >>> ot.RandomGenerator.SetSeed(0)
        >>> print(randomVector.getSample(3))
            [ marginal 1 marginal 2 ]
        0 : [  0.608202  -1.26617   ]
        1 : [ -0.438266   1.20548   ]
        2 : [ -2.18139    0.350042  ]
        """
        return _metamodel.RandomVector_getSample(self, *args)

    def getMarginal(self, *args):
        """
        Accessor to the random vector corresponding to the i^{th} marginal component(s).

        Parameters
        ----------
        i : int or list of ints, :math:`0\\leq i < dim`
            Indicates the component(s) concerned. :math:`dim` is the dimension of the
            RandomVector.

        Returns
        -------
        vector :  :class:`~openturns.RandomVector`
            RandomVector restricted to the concerned components.

        Notes
        -----
        Let's note :math:`\\underline{Y}=(Y_1,\\dots,Y_n)^t` a random vector and
        :math:`I \\in [1,n]` a set of indices. If :math:`\\underline{Y}` is a
        :class:`~openturns.UsualRandomVector`, the subvector is defined by
        :math:`\\tilde{\\underline{Y}}=(Y_i)_{i \\in I}^t`. If :math:`\\underline{Y}` is a
        :class:`~openturns.CompositeRandomVector`, defined by
        :math:`\\underline{Y}=f(\\underline{X})` with :math:`f=(f_1,\\dots,f_n)`,
        :math:`f_i` some scalar functions, the subvector is
        :math:`\\tilde{\\underline{Y}}=(f_i(\\underline{X}))_{i \\in I}`.

        Examples
        --------
        >>> import openturns as ot
        >>> distribution = ot.Normal([0., 0.], [1., 1.], ot.CorrelationMatrix(2))
        >>> randomVector = ot.RandomVector(distribution)
        >>> ot.RandomGenerator.SetSeed(0)
        >>> print(randomVector.getMarginal(1).getRealization())
        [0.608202]
        >>> print(randomVector.getMarginal(1).getDistribution())
        Normal(mu = 0, sigma = 1)
        """
        return _metamodel.RandomVector_getMarginal(self, *args)

    def getMean(self):
        """
        Accessor to the mean of the RandomVector.

        Returns
        -------
        mean : float sequence
            Mean of the considered :class:`~openturns.UsualRandomVector`.

        Examples
        --------
        >>> import openturns as ot
        >>> distribution = ot.Normal([0., 0.5], [1., 1.5], ot.CorrelationMatrix(2))
        >>> randomVector = ot.RandomVector(distribution)
        >>> ot.RandomGenerator.SetSeed(0)
        >>> print(randomVector.getMean())
        [0,0.5]
        """
        return _metamodel.RandomVector_getMean(self)

    def getCovariance(self):
        """
        Accessor to the covariance of the RandomVector.

        Returns
        -------
        covariance : :class:`~openturns.CovarianceMatrix`
            Covariance of the considered :class:`~openturns.UsualRandomVector`.

        Examples
        --------
        >>> import openturns as ot
        >>> distribution = ot.Normal([0., 0.5], [1., 1.5], ot.CorrelationMatrix(2))
        >>> randomVector = ot.RandomVector(distribution)
        >>> ot.RandomGenerator.SetSeed(0)
        >>> print(randomVector.getCovariance())
        [[ 1    0    ]
         [ 0    2.25 ]]
        """
        return _metamodel.RandomVector_getCovariance(self)

    def getAntecedent(self):
        """
        Accessor to the antecedent RandomVector in case of a composite RandomVector.

        Returns
        -------
        antecedent : :class:`~openturns.RandomVector`
            Antecedent RandomVector :math:`\\underline{X}` in case of a
            :class:`~openturns.CompositeRandomVector` such as:
            :math:`\\underline{Y}=f(\\underline{X})`.
        """
        return _metamodel.RandomVector_getAntecedent(self)

    def getFunction(self):
        """
        Accessor to the NumericalMathFunction in case of a composite RandomVector.

        Returns
        -------
        function : :class:`~openturns.NumericalMathFunction`
            Function used to define a :class:`~openturns.CompositeRandomVector` as the
            image through this function of the antecedent :math:`\\underline{X}`:
            :math:`\\underline{Y}=f(\\underline{X})`.
        """
        return _metamodel.RandomVector_getFunction(self)

    def getDistribution(self):
        """
        Accessor to the distribution of the RandomVector.

        Returns
        -------
        distribution : :class:`~openturns.Distribution`
            Distribution of the considered :class:`~openturns.UsualRandomVector`.

        Examples
        --------
        >>> import openturns as ot
        >>> distribution = ot.Normal([0., 0.], [1., 1.], ot.CorrelationMatrix(2))
        >>> randomVector = ot.RandomVector(distribution)
        >>> ot.RandomGenerator.SetSeed(0)
        >>> print(randomVector.getDistribution())
        Normal(mu = [0,0], sigma = [1,1], R = [[ 1 0 ]
         [ 0 1 ]])
        """
        return _metamodel.RandomVector_getDistribution(self)

    def getOperator(self):
        """
        Accessor to the comparaison operator of the Event.

        Returns
        -------
        operator : :class:`~openturns.ComparisonOperator`
            Comparaison operator used to define the :class:`~openturns.Event`.
        """
        return _metamodel.RandomVector_getOperator(self)

    def getThreshold(self):
        """
        Accessor to the threshold of the Event.

        Returns
        -------
        threshold : float
            Threshold of the :class:`~openturns.Event`.
        """
        return _metamodel.RandomVector_getThreshold(self)

    def __init__(self, *args): 
        this = _metamodel.new_RandomVector(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _metamodel.delete_RandomVector
    __del__ = lambda self : None;
RandomVector_swigregister = _metamodel.RandomVector_swigregister
RandomVector_swigregister(RandomVector)

class CompositeRandomVector(openturns.randomvector.RandomVectorImplementation):
    __swig_setmethods__ = {}
    for _s in [openturns.randomvector.RandomVectorImplementation]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, CompositeRandomVector, name, value)
    __swig_getmethods__ = {}
    for _s in [openturns.randomvector.RandomVectorImplementation]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, CompositeRandomVector, name)
    def getClassName(self):
        """
        Accessor to the object's name.

        Returns
        -------
        class_name : str
            The object class name (`object.__class__.__name__`).
        """
        return _metamodel.CompositeRandomVector_getClassName(self)

    def __repr__(self): return _metamodel.CompositeRandomVector___repr__(self)
    def isComposite(self):
        """
        Accessor to know if the RandomVector is a composite one.

        Returns
        -------
        isComposite : Bool
            Indicates if the RandomVector is of type Composite or not.
        """
        return _metamodel.CompositeRandomVector_isComposite(self)

    def getDimension(self):
        """
        Accessor to the dimension of the RandomVector.

        Returns
        -------
        dimension : positive int
            Dimension of the RandomVector.
        """
        return _metamodel.CompositeRandomVector_getDimension(self)

    def getRealization(self):
        """
        Compute one realization of the RandomVector.

        Returns
        -------
        aRealization : float sequence
            Sequence of values randomly determined from the RandomVector definition.
            In the case of an event: one realization of the event (considered as a
            Bernoulli variable) which is a boolean value (1 for the realization of the
            event and 0 else).

        See also
        --------
        getSample

        Examples
        --------
        >>> import openturns as ot
        >>> distribution = ot.Normal([0., 0.], [1., 1.], ot.CorrelationMatrix(2))
        >>> randomVector = ot.RandomVector(distribution)
        >>> ot.RandomGenerator.SetSeed(0)
        >>> print(randomVector.getRealization())
        [0.608202,-1.26617]
        >>> print(randomVector.getRealization())
        [-0.438266,1.20548]
        """
        return _metamodel.CompositeRandomVector_getRealization(self)

    def getSample(self, *args):
        """
        Compute realizations of the RandomVector.

        Parameters
        ----------
        n : int, :math:`n \\geq 0`
            Number of realizations needed.

        Returns
        -------
        realizations : 2D float sequence
            n sequences of values randomly determined from the RandomVector definition.
            In the case of an event: n realizations of the event (considered as a
            Bernoulli variable) which are boolean values (1 for the realization of the
            event and 0 else).

        See also
        --------
        getRealization

        Examples
        --------
        >>> import openturns as ot
        >>> distribution = ot.Normal([0., 0.], [1., 1.], ot.CorrelationMatrix(2))
        >>> randomVector = ot.RandomVector(distribution)
        >>> ot.RandomGenerator.SetSeed(0)
        >>> print(randomVector.getSample(3))
            [ marginal 1 marginal 2 ]
        0 : [  0.608202  -1.26617   ]
        1 : [ -0.438266   1.20548   ]
        2 : [ -2.18139    0.350042  ]
        """
        return _metamodel.CompositeRandomVector_getSample(self, *args)

    def getMean(self):
        """
        Accessor to the mean of the RandomVector.

        Returns
        -------
        mean : float sequence
            Mean of the considered :class:`~openturns.UsualRandomVector`.

        Examples
        --------
        >>> import openturns as ot
        >>> distribution = ot.Normal([0., 0.5], [1., 1.5], ot.CorrelationMatrix(2))
        >>> randomVector = ot.RandomVector(distribution)
        >>> ot.RandomGenerator.SetSeed(0)
        >>> print(randomVector.getMean())
        [0,0.5]
        """
        return _metamodel.CompositeRandomVector_getMean(self)

    def getCovariance(self):
        """
        Accessor to the covariance of the RandomVector.

        Returns
        -------
        covariance : :class:`~openturns.CovarianceMatrix`
            Covariance of the considered :class:`~openturns.UsualRandomVector`.

        Examples
        --------
        >>> import openturns as ot
        >>> distribution = ot.Normal([0., 0.5], [1., 1.5], ot.CorrelationMatrix(2))
        >>> randomVector = ot.RandomVector(distribution)
        >>> ot.RandomGenerator.SetSeed(0)
        >>> print(randomVector.getCovariance())
        [[ 1    0    ]
         [ 0    2.25 ]]
        """
        return _metamodel.CompositeRandomVector_getCovariance(self)

    def getMarginal(self, *args):
        """
        Accessor to the random vector corresponding to the i^{th} marginal component(s).

        Parameters
        ----------
        i : int or list of ints, :math:`0\\leq i < dim`
            Indicates the component(s) concerned. :math:`dim` is the dimension of the
            RandomVector.

        Returns
        -------
        vector :  :class:`~openturns.RandomVector`
            RandomVector restricted to the concerned components.

        Notes
        -----
        Let's note :math:`\\underline{Y}=(Y_1,\\dots,Y_n)^t` a random vector and
        :math:`I \\in [1,n]` a set of indices. If :math:`\\underline{Y}` is a
        :class:`~openturns.UsualRandomVector`, the subvector is defined by
        :math:`\\tilde{\\underline{Y}}=(Y_i)_{i \\in I}^t`. If :math:`\\underline{Y}` is a
        :class:`~openturns.CompositeRandomVector`, defined by
        :math:`\\underline{Y}=f(\\underline{X})` with :math:`f=(f_1,\\dots,f_n)`,
        :math:`f_i` some scalar functions, the subvector is
        :math:`\\tilde{\\underline{Y}}=(f_i(\\underline{X}))_{i \\in I}`.

        Examples
        --------
        >>> import openturns as ot
        >>> distribution = ot.Normal([0., 0.], [1., 1.], ot.CorrelationMatrix(2))
        >>> randomVector = ot.RandomVector(distribution)
        >>> ot.RandomGenerator.SetSeed(0)
        >>> print(randomVector.getMarginal(1).getRealization())
        [0.608202]
        >>> print(randomVector.getMarginal(1).getDistribution())
        Normal(mu = 0, sigma = 1)
        """
        return _metamodel.CompositeRandomVector_getMarginal(self, *args)

    def getAntecedent(self):
        """
        Accessor to the antecedent RandomVector in case of a composite RandomVector.

        Returns
        -------
        antecedent : :class:`~openturns.RandomVector`
            Antecedent RandomVector :math:`\\underline{X}` in case of a
            :class:`~openturns.CompositeRandomVector` such as:
            :math:`\\underline{Y}=f(\\underline{X})`.
        """
        return _metamodel.CompositeRandomVector_getAntecedent(self)

    def getFunction(self):
        """
        Accessor to the NumericalMathFunction in case of a composite RandomVector.

        Returns
        -------
        function : :class:`~openturns.NumericalMathFunction`
            Function used to define a :class:`~openturns.CompositeRandomVector` as the
            image through this function of the antecedent :math:`\\underline{X}`:
            :math:`\\underline{Y}=f(\\underline{X})`.
        """
        return _metamodel.CompositeRandomVector_getFunction(self)

    def getDistribution(self):
        """
        Accessor to the distribution of the RandomVector.

        Returns
        -------
        distribution : :class:`~openturns.Distribution`
            Distribution of the considered :class:`~openturns.UsualRandomVector`.

        Examples
        --------
        >>> import openturns as ot
        >>> distribution = ot.Normal([0., 0.], [1., 1.], ot.CorrelationMatrix(2))
        >>> randomVector = ot.RandomVector(distribution)
        >>> ot.RandomGenerator.SetSeed(0)
        >>> print(randomVector.getDistribution())
        Normal(mu = [0,0], sigma = [1,1], R = [[ 1 0 ]
         [ 0 1 ]])
        """
        return _metamodel.CompositeRandomVector_getDistribution(self)

    def __init__(self, *args): 
        this = _metamodel.new_CompositeRandomVector(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _metamodel.delete_CompositeRandomVector
    __del__ = lambda self : None;
CompositeRandomVector_swigregister = _metamodel.CompositeRandomVector_swigregister
CompositeRandomVector_swigregister(CompositeRandomVector)

class EventRandomVectorImplementation(CompositeRandomVector):
    __swig_setmethods__ = {}
    for _s in [CompositeRandomVector]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, EventRandomVectorImplementation, name, value)
    __swig_getmethods__ = {}
    for _s in [CompositeRandomVector]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, EventRandomVectorImplementation, name)
    def getClassName(self):
        """
        Accessor to the object's name.

        Returns
        -------
        class_name : str
            The object class name (`object.__class__.__name__`).
        """
        return _metamodel.EventRandomVectorImplementation_getClassName(self)

    def __repr__(self): return _metamodel.EventRandomVectorImplementation___repr__(self)
    def getDimension(self):
        """
        Accessor to the dimension of the RandomVector.

        Returns
        -------
        dimension : positive int
            Dimension of the RandomVector.
        """
        return _metamodel.EventRandomVectorImplementation_getDimension(self)

    def getOperator(self):
        """
        Accessor to the comparaison operator of the Event.

        Returns
        -------
        operator : :class:`~openturns.ComparisonOperator`
            Comparaison operator used to define the :class:`~openturns.Event`.
        """
        return _metamodel.EventRandomVectorImplementation_getOperator(self)

    def getThreshold(self):
        """
        Accessor to the threshold of the Event.

        Returns
        -------
        threshold : float
            Threshold of the :class:`~openturns.Event`.
        """
        return _metamodel.EventRandomVectorImplementation_getThreshold(self)

    def getRealization(self):
        """
        Compute one realization of the RandomVector.

        Returns
        -------
        aRealization : float sequence
            Sequence of values randomly determined from the RandomVector definition.
            In the case of an event: one realization of the event (considered as a
            Bernoulli variable) which is a boolean value (1 for the realization of the
            event and 0 else).

        See also
        --------
        getSample

        Examples
        --------
        >>> import openturns as ot
        >>> distribution = ot.Normal([0., 0.], [1., 1.], ot.CorrelationMatrix(2))
        >>> randomVector = ot.RandomVector(distribution)
        >>> ot.RandomGenerator.SetSeed(0)
        >>> print(randomVector.getRealization())
        [0.608202,-1.26617]
        >>> print(randomVector.getRealization())
        [-0.438266,1.20548]
        """
        return _metamodel.EventRandomVectorImplementation_getRealization(self)

    def getSample(self, *args):
        """
        Compute realizations of the RandomVector.

        Parameters
        ----------
        n : int, :math:`n \\geq 0`
            Number of realizations needed.

        Returns
        -------
        realizations : 2D float sequence
            n sequences of values randomly determined from the RandomVector definition.
            In the case of an event: n realizations of the event (considered as a
            Bernoulli variable) which are boolean values (1 for the realization of the
            event and 0 else).

        See also
        --------
        getRealization

        Examples
        --------
        >>> import openturns as ot
        >>> distribution = ot.Normal([0., 0.], [1., 1.], ot.CorrelationMatrix(2))
        >>> randomVector = ot.RandomVector(distribution)
        >>> ot.RandomGenerator.SetSeed(0)
        >>> print(randomVector.getSample(3))
            [ marginal 1 marginal 2 ]
        0 : [  0.608202  -1.26617   ]
        1 : [ -0.438266   1.20548   ]
        2 : [ -2.18139    0.350042  ]
        """
        return _metamodel.EventRandomVectorImplementation_getSample(self, *args)

    def __init__(self, *args): 
        this = _metamodel.new_EventRandomVectorImplementation(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _metamodel.delete_EventRandomVectorImplementation
    __del__ = lambda self : None;
EventRandomVectorImplementation_swigregister = _metamodel.EventRandomVectorImplementation_swigregister
EventRandomVectorImplementation_swigregister(EventRandomVectorImplementation)

class EventDomainImplementation(CompositeRandomVector):
    __swig_setmethods__ = {}
    for _s in [CompositeRandomVector]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, EventDomainImplementation, name, value)
    __swig_getmethods__ = {}
    for _s in [CompositeRandomVector]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, EventDomainImplementation, name)
    def getClassName(self):
        """
        Accessor to the object's name.

        Returns
        -------
        class_name : str
            The object class name (`object.__class__.__name__`).
        """
        return _metamodel.EventDomainImplementation_getClassName(self)

    def __repr__(self): return _metamodel.EventDomainImplementation___repr__(self)
    def getDimension(self):
        """
        Accessor to the dimension of the RandomVector.

        Returns
        -------
        dimension : positive int
            Dimension of the RandomVector.
        """
        return _metamodel.EventDomainImplementation_getDimension(self)

    def getDomain(self): return _metamodel.EventDomainImplementation_getDomain(self)
    def getRealization(self):
        """
        Compute one realization of the RandomVector.

        Returns
        -------
        aRealization : float sequence
            Sequence of values randomly determined from the RandomVector definition.
            In the case of an event: one realization of the event (considered as a
            Bernoulli variable) which is a boolean value (1 for the realization of the
            event and 0 else).

        See also
        --------
        getSample

        Examples
        --------
        >>> import openturns as ot
        >>> distribution = ot.Normal([0., 0.], [1., 1.], ot.CorrelationMatrix(2))
        >>> randomVector = ot.RandomVector(distribution)
        >>> ot.RandomGenerator.SetSeed(0)
        >>> print(randomVector.getRealization())
        [0.608202,-1.26617]
        >>> print(randomVector.getRealization())
        [-0.438266,1.20548]
        """
        return _metamodel.EventDomainImplementation_getRealization(self)

    def getSample(self, *args):
        """
        Compute realizations of the RandomVector.

        Parameters
        ----------
        n : int, :math:`n \\geq 0`
            Number of realizations needed.

        Returns
        -------
        realizations : 2D float sequence
            n sequences of values randomly determined from the RandomVector definition.
            In the case of an event: n realizations of the event (considered as a
            Bernoulli variable) which are boolean values (1 for the realization of the
            event and 0 else).

        See also
        --------
        getRealization

        Examples
        --------
        >>> import openturns as ot
        >>> distribution = ot.Normal([0., 0.], [1., 1.], ot.CorrelationMatrix(2))
        >>> randomVector = ot.RandomVector(distribution)
        >>> ot.RandomGenerator.SetSeed(0)
        >>> print(randomVector.getSample(3))
            [ marginal 1 marginal 2 ]
        0 : [  0.608202  -1.26617   ]
        1 : [ -0.438266   1.20548   ]
        2 : [ -2.18139    0.350042  ]
        """
        return _metamodel.EventDomainImplementation_getSample(self, *args)

    def __init__(self, *args): 
        this = _metamodel.new_EventDomainImplementation(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _metamodel.delete_EventDomainImplementation
    __del__ = lambda self : None;
EventDomainImplementation_swigregister = _metamodel.EventDomainImplementation_swigregister
EventDomainImplementation_swigregister(EventDomainImplementation)

class EventProcess(openturns.randomvector.RandomVectorImplementation):
    __swig_setmethods__ = {}
    for _s in [openturns.randomvector.RandomVectorImplementation]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, EventProcess, name, value)
    __swig_getmethods__ = {}
    for _s in [openturns.randomvector.RandomVectorImplementation]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, EventProcess, name)
    def getClassName(self):
        """
        Accessor to the object's name.

        Returns
        -------
        class_name : str
            The object class name (`object.__class__.__name__`).
        """
        return _metamodel.EventProcess_getClassName(self)

    def __repr__(self): return _metamodel.EventProcess___repr__(self)
    def getDimension(self):
        """
        Accessor to the dimension of the RandomVector.

        Returns
        -------
        dimension : positive int
            Dimension of the RandomVector.
        """
        return _metamodel.EventProcess_getDimension(self)

    def getDomain(self): return _metamodel.EventProcess_getDomain(self)
    def getProcess(self): return _metamodel.EventProcess_getProcess(self)
    def getRealization(self):
        """
        Compute one realization of the RandomVector.

        Returns
        -------
        aRealization : float sequence
            Sequence of values randomly determined from the RandomVector definition.
            In the case of an event: one realization of the event (considered as a
            Bernoulli variable) which is a boolean value (1 for the realization of the
            event and 0 else).

        See also
        --------
        getSample

        Examples
        --------
        >>> import openturns as ot
        >>> distribution = ot.Normal([0., 0.], [1., 1.], ot.CorrelationMatrix(2))
        >>> randomVector = ot.RandomVector(distribution)
        >>> ot.RandomGenerator.SetSeed(0)
        >>> print(randomVector.getRealization())
        [0.608202,-1.26617]
        >>> print(randomVector.getRealization())
        [-0.438266,1.20548]
        """
        return _metamodel.EventProcess_getRealization(self)

    def __init__(self, *args): 
        this = _metamodel.new_EventProcess(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _metamodel.delete_EventProcess
    __del__ = lambda self : None;
EventProcess_swigregister = _metamodel.EventProcess_swigregister
EventProcess_swigregister(EventProcess)

class ConditionalRandomVector(openturns.randomvector.RandomVectorImplementation):
    """
    Conditional random vector.

    Helper class for defining the random vector :math:`\\vect{X}` such that  :math:`\\vect{X}|\\vect{\\Theta}` follows the distribution :math:`\\mathcal{L}_{\\vect{X}|\\vect{\\Theta}}`, with :math:`\\vect{\\Theta}` a random vector of dimension the dimension of :math:`\\vect{\\Theta}`.

    Available constructors:
       ConditionalRandomVector(*conditionedDist, randomParameters*)

    Parameters
    ----------

    conditionedDist : :class:`~openturns.Distribution`, the distribution of :math:`\\vect{X}|\\vect{\\Theta}`, whose parameters will be overwritten by :math:`\\vect{\\Theta}`.
        
    randomParameters : :class:`~openturns.RandomVector`, the random parameters :math:`\\vect{\\Theta}` of the `conditionedDist` distribution. 

    Notes
    -----
    Its probability density function is defined as:

    .. math::

        f_{\\vect{X}}(\\vect{x}) = \\int f_{\\vect{X}|\\vect{\\Theta}=\\vect{\\theta}}(\\vect{x}|\\vect{\\theta}) f_{\\vect{\\Theta}}(\\vect{\\theta})\\, d\\vect{\\theta}

    with  :math:`f_{\\vect{X}|\\vect{\\Theta}=\\vect{\\theta}}` the PDF of the distribution of :math:`\\vect{X}|\\vect{\\Theta}`, where :math:`\\vect{\\Theta}` has been replaced by :math:`\\vect{\\theta}`, :math:`f_{\\vect{\\Theta}}` the PDF of :math:`\\vect{\\Theta}`.

    Note that there exist other (quasi) equivalent modellings using a combination of the classes :class:`~openturns.ConditionalDistribution` and :class:`~openturns.RandomVector` (see the Use Cases Guide).

    Examples
    --------
    Create a random vector:

    >>> import openturns as ot
    >>> conditionedDist = ot.Normal()
    >>> linkFunc = ot.NumericalMathFunction(['y'], ['m', 's'], ['y', 'y^2'])
    >>> rvTheta = ot.CompositeRandomVector(linkFunc, ot.RandomVector(ot.Normal()))
    >>> finalDist = ot.ConditionalRandomVector(conditionedDist, rvTheta)

    Draw a sample:

    >>> sample = finalDist.getSample(10)

    """
    __swig_setmethods__ = {}
    for _s in [openturns.randomvector.RandomVectorImplementation]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, ConditionalRandomVector, name, value)
    __swig_getmethods__ = {}
    for _s in [openturns.randomvector.RandomVectorImplementation]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, ConditionalRandomVector, name)
    def getClassName(self):
        """
        Accessor to the object's name.

        Returns
        -------
        class_name : str
            The object class name (`object.__class__.__name__`).
        """
        return _metamodel.ConditionalRandomVector_getClassName(self)

    def __repr__(self): return _metamodel.ConditionalRandomVector___repr__(self)
    def getDimension(self):
        """
        Accessor to the dimension of the RandomVector.

        Returns
        -------
        dimension : positive int
            Dimension of the RandomVector.
        """
        return _metamodel.ConditionalRandomVector_getDimension(self)

    def getRealization(self, *args):
        """
        Compute one realization of the RandomVector.

        Returns
        -------
        aRealization : float sequence
            Sequence of values randomly determined from the RandomVector definition.
            In the case of an event: one realization of the event (considered as a
            Bernoulli variable) which is a boolean value (1 for the realization of the
            event and 0 else).

        See also
        --------
        getSample

        Examples
        --------
        >>> import openturns as ot
        >>> distribution = ot.Normal([0., 0.], [1., 1.], ot.CorrelationMatrix(2))
        >>> randomVector = ot.RandomVector(distribution)
        >>> ot.RandomGenerator.SetSeed(0)
        >>> print(randomVector.getRealization())
        [0.608202,-1.26617]
        >>> print(randomVector.getRealization())
        [-0.438266,1.20548]
        """
        return _metamodel.ConditionalRandomVector_getRealization(self, *args)

    def getDistribution(self):
        """
        Accessor to the distribution's conditioned distribution parameter `conditionedDistribution`.

        Returns
        -------
        conditionedDistribution : :class:`~openturns.Distribution`, the distribution of :math:`\\vect{X}|\\vect{\\Theta}=\\vect{\\theta}`, where the parameters :math:`\\vect{\\theta}` are equal to the  values used to generate the last realization of :math:`\\vect{X}`.

        """
        return _metamodel.ConditionalRandomVector_getDistribution(self)

    def getRandomParameters(self):
        """
        Accessor to the distribution's random parameter `randomParameters`.

        Returns
        -------
        randomParameters : :class:`~openturns.RandomVector`, the random parameters :math:`\\vect{\\Theta}`.

        """
        return _metamodel.ConditionalRandomVector_getRandomParameters(self)

    def __init__(self, *args): 
        this = _metamodel.new_ConditionalRandomVector(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _metamodel.delete_ConditionalRandomVector
    __del__ = lambda self : None;
ConditionalRandomVector_swigregister = _metamodel.ConditionalRandomVector_swigregister
ConditionalRandomVector_swigregister(ConditionalRandomVector)

class Event(RandomVector):
    """
    Event.

    Available constructor:
        Event()

        Event(*antecedent, comparisonOperator, threshold*)

        Event(*antecedent, domain*)

        Event(*process, domain*)

    Parameters
    ----------
    antecedent : :class:`~openturns.RandomVector` of dimension 1
        Output variable of interest.
    comparisonOperator : :class:`~openturns.ComparisonOperator`
        Comparison operator used to compare *antecedent* with *threshold*.
    threshold : float
        *threshold* we want to compare to *antecedent*.
    domain : :class:`~openturns.Domain`
        Domain failure.
    process : :class:`~openturns.Process`
        Stochastic process.

    Notes
    -----
    An event is defined as follows:

    .. math::

        \\cD_f = \\{\\vect{X} \\in \\Rset^n \\, / \\, g(\\vect{X},\\vect{d}) \\le 0\\}

    where :math:`\\vect{X}` denotes a random input vector, representing the sources
    of uncertainties, :math:`\\vect{d}` is a determinist vector, representing the
    fixed variables and :math:`g(\\vect{X},\\vect{d})` is the limit state function of
    the model.
    The probability content of the event :math:`\\cD_f` is :math:`P_f`:

    .. math::

        P_f = \\int_{g(\\vect{X},\\vect{d})\\le 0}f_\\vect{X}(\\vect{x})d\\vect{x}

    Here, the event considered is explicited directly from the limit state function
    :math:`g(\\vect{X}\\,,\\,\\vect{d})` : this is the classical structural reliability
    formulation. However, if the event is a threshold exceedance, it is useful to
    explicite the variable of interest :math:`Z=\\tilde{g}(\\vect{X}\\,,\\,\\vect{d})`,
    evaluated from the model :math:`\\tilde{g}(.)`. In that case, the event
    considered, associated to the threshold :math:`z_s` has the formulation:

    .. math::

        \\cD_f = \\{ \\vect{X} \\in \\Rset^n \\, / \\, Z=\\tilde{g}(\\vect{X}\\,,\\,\\vect{d}) > z_s \\}

    and the limit state function is:

    .. math::

        g(\\vect{X}\\,,\\,\\vect{d}) &= z_s - Z \\\\
                                 &= z_s - \\tilde{g}(\\vect{X}\\,,\\,\\vect{d})

    :math:`P_f` is the threshold exceedance probability, defined as:

    .. math::

        P_f &= P(Z \\geq z_s) \\\\
            &= \\int_{g(\\vect{X}\\,,\\,\\vect{d}) \\le 0}  \\pdf\\, d\\vect{x}

    Examples
    --------
    An event created from a limit state function:

    >>> import openturns as ot
    >>> myFunction = ot.NumericalMathFunction(['E', 'F', 'L', 'I'], ['d'], ['-F*L^3/(3*E*I)'])
    >>> myDistribution = ot.Normal([50., 1., 10., 5.], [1.]*4, ot.IdentityMatrix(4))
    >>> vect = ot.RandomVector(myDistribution)
    >>> output = ot.RandomVector(myFunction, vect)
    >>> myEvent = ot.Event(output, ot.Less(), -3.0)

    A composite random vector based event:

    >>> X = ot.RandomVector(ot.Normal(2))
    >>> model = ot.NumericalMathFunction(['x0', 'x1'], ['x0', 'x1'])
    >>> Y = ot.RandomVector(model, X)
    >>> # The domain: [0, 1]^2
    >>> domain = ot.Interval(2)
    >>> # The event
    >>> event = ot.Event(Y, domain)

    A process based event:

    >>> # The input process
    >>> X = ot.WhiteNoise(ot.Normal(2))
    >>> # The domain: [0, 1]^2
    >>> domain = ot.Interval(2)
    >>> # The event
    >>> event = ot.Event(X, domain)

    """
    __swig_setmethods__ = {}
    for _s in [RandomVector]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, Event, name, value)
    __swig_getmethods__ = {}
    for _s in [RandomVector]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, Event, name)
    def getClassName(self):
        """
        Accessor to the object's name.

        Returns
        -------
        class_name : str
            The object class name (`object.__class__.__name__`).
        """
        return _metamodel.Event_getClassName(self)

    def __repr__(self): return _metamodel.Event___repr__(self)
    def __str__(self, offset=""): return _metamodel.Event___str__(self, offset)
    def __init__(self, *args): 
        this = _metamodel.new_Event(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _metamodel.delete_Event
    __del__ = lambda self : None;
Event_swigregister = _metamodel.Event_swigregister
Event_swigregister(Event)

class StandardEvent(Event):
    __swig_setmethods__ = {}
    for _s in [Event]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, StandardEvent, name, value)
    __swig_getmethods__ = {}
    for _s in [Event]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, StandardEvent, name)
    __repr__ = _swig_repr
    def getClassName(self):
        """
        Accessor to the object's name.

        Returns
        -------
        class_name : str
            The object class name (`object.__class__.__name__`).
        """
        return _metamodel.StandardEvent_getClassName(self)

    def __init__(self, *args): 
        this = _metamodel.new_StandardEvent(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _metamodel.delete_StandardEvent
    __del__ = lambda self : None;
StandardEvent_swigregister = _metamodel.StandardEvent_swigregister
StandardEvent_swigregister(StandardEvent)

class FunctionalChaosRandomVector(CompositeRandomVector):
    __swig_setmethods__ = {}
    for _s in [CompositeRandomVector]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, FunctionalChaosRandomVector, name, value)
    __swig_getmethods__ = {}
    for _s in [CompositeRandomVector]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
    __getattr__ = lambda self, name: _swig_getattr(self, FunctionalChaosRandomVector, name)
    def getClassName(self):
        """
        Accessor to the object's name.

        Returns
        -------
        class_name : str
            The object class name (`object.__class__.__name__`).
        """
        return _metamodel.FunctionalChaosRandomVector_getClassName(self)

    def __repr__(self): return _metamodel.FunctionalChaosRandomVector___repr__(self)
    def getMean(self):
        """
        Accessor to the mean of the RandomVector.

        Returns
        -------
        mean : float sequence
            Mean of the considered :class:`~openturns.UsualRandomVector`.

        Examples
        --------
        >>> import openturns as ot
        >>> distribution = ot.Normal([0., 0.5], [1., 1.5], ot.CorrelationMatrix(2))
        >>> randomVector = ot.RandomVector(distribution)
        >>> ot.RandomGenerator.SetSeed(0)
        >>> print(randomVector.getMean())
        [0,0.5]
        """
        return _metamodel.FunctionalChaosRandomVector_getMean(self)

    def getCovariance(self):
        """
        Accessor to the covariance of the RandomVector.

        Returns
        -------
        covariance : :class:`~openturns.CovarianceMatrix`
            Covariance of the considered :class:`~openturns.UsualRandomVector`.

        Examples
        --------
        >>> import openturns as ot
        >>> distribution = ot.Normal([0., 0.5], [1., 1.5], ot.CorrelationMatrix(2))
        >>> randomVector = ot.RandomVector(distribution)
        >>> ot.RandomGenerator.SetSeed(0)
        >>> print(randomVector.getCovariance())
        [[ 1    0    ]
         [ 0    2.25 ]]
        """
        return _metamodel.FunctionalChaosRandomVector_getCovariance(self)

    def getSobolIndex(self, *args): return _metamodel.FunctionalChaosRandomVector_getSobolIndex(self, *args)
    def getSobolTotalIndex(self, *args): return _metamodel.FunctionalChaosRandomVector_getSobolTotalIndex(self, *args)
    def getFunctionalChaoResult(self): return _metamodel.FunctionalChaosRandomVector_getFunctionalChaoResult(self)
    def __init__(self, *args): 
        this = _metamodel.new_FunctionalChaosRandomVector(*args)
        try: self.this.append(this)
        except: self.this = this
    __swig_destroy__ = _metamodel.delete_FunctionalChaosRandomVector
    __del__ = lambda self : None;
FunctionalChaosRandomVector_swigregister = _metamodel.FunctionalChaosRandomVector_swigregister
FunctionalChaosRandomVector_swigregister(FunctionalChaosRandomVector)

# This file is compatible with both classic and new-style classes.