~ubuntu-branches/ubuntu/maverick/openturns/maverick

« back to all changes in this revision

Viewing changes to python/test/t_OrthonormalizationAlgorithm_std.py

  • Committer: Bazaar Package Importer
  • Author(s): Fabrice Coutadeur
  • Date: 2010-05-10 17:27:55 UTC
  • mfrom: (1.1.4 upstream) (5.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100510172755-cb5ynskknqqi5rhp
Tags: 0.13.2-2ubuntu1
* Merge with Debian testing. No changes left.
* ubuntu_fix-python-2.6.patch: fix detection of python 2.6 libs, to not use
  LOCALMODLIBS. This pulls a dependency on SSL and makes the package FTBFS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /usr/bin/env python
 
2
 
 
3
from openturns import *
 
4
from math import *
 
5
 
 
6
TESTPREAMBLE()
 
7
 
 
8
try :
 
9
    distribution = Triangular(-1.0, 0.3, 1.0)
 
10
    algo = OrthonormalizationAlgorithm(Distribution(distribution))
 
11
    print "algo=", algo
 
12
    print "measure=", algo.getMeasure()
 
13
    algo.setMeasure(Distribution(Triangular(-1.0, -0.2, 1.0)))
 
14
    print "new measure=", algo.getMeasure()
 
15
      
 
16
except :
 
17
    import sys
 
18
    print "t_OrthonormalizationAlgorithm_std.py", sys.exc_type, sys.exc_value
 
19