diff --git a/process_fields.ipynb b/process_fields.ipynb index eca4f54..85fc0a5 100644 --- a/process_fields.ipynb +++ b/process_fields.ipynb @@ -518,7 +518,7 @@ "source": [ "\n", "likeliHoodGraph = ot.Graph()\n", - "myBXTrans = ot.BoxCoxFactory().build(myReal, [0], likeliHoodGraph)\n", + "myBXTrans, likeliHoodGraph = ot.BoxCoxFactory().buildWithGraph(myReal, [0])\n", "myNewReal = myBXTrans(myReal)\n", "newHist = ot.HistogramFactory().build(myNewReal.getValues())\n", "graph2 = newHist.drawPDF()\n", diff --git a/sobol_field.ipynb b/sobol_field.ipynb index 3fb5100..2a3c154 100644 --- a/sobol_field.ipynb +++ b/sobol_field.ipynb @@ -94,7 +94,10 @@ "projection = ot.IntegrationStrategy(ot.GaussProductExperiment(distribution, [marginalDegree+1]*dim))\n", "\n", "# PCE\n", - "algo = ot.FunctionalChaosAlgorithm(model, distribution, adaptive, projection)\n", + "marginalSizes = [4] * dim\n", + "X, W = ot.GaussProductExperiment(distribution, marginalSizes).generateWithWeights()\n", + "Y = model(X)\n", + "algo = ot.FunctionalChaosAlgorithm(X, W, Y, distribution, adaptive, projection)\n", "t0 = time.time()\n", "#ot.Log.Show(ot.Log.INFO)\n", "algo.run()\n",