#                                               -*- Python -*-
#
#  @file  ishigami_msa.py
#  @brief Validation of sensitivity evaluation for the Ishigami model with mean value
#
#  Copyright (C) 2017 Airbus-IMACS
#
#  Written by Sofiane Haddad, haddad@imacs.polytechnique.fr
#             Nabil Rachdi, nabil.rachdi@airbus.com
#
#  This program is free software; you can redistribute it and/or
#  it under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU Lesser General Public License for more details.
#
#  You should have received a copy of the GNU Lesser General Public
#  along with this library.  If not, see <http://www.gnu.org/licenses/>.
#

"""
    ishigami_msa
    =============
    Part of CHORUS project

"""
import openturns as ot
from math import sin, pi
import numpy as np
from pygosa.tests import sensitivity_mean_evaluation
from pygosa.tests import ishigami_uc

ishigami_model = ishigami_uc.define_ishigami_function()
distribution_ishigami = ishigami_uc.define_ishigami_distribution()

size = 2000

mean_factors, ms = sensitivity_mean_evaluation(dist=distribution_ishigami, model=ishigami_model, size=size)


