Skip to content

Commit

Permalink
Fixes issue #194 - removed duplicate import statement
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-krill committed Jun 23, 2023
1 parent 1e7844b commit 3cb5fcd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/code/reliability/form/local_pfn.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
"""
import numpy as np


def example1(samples=None):
g = np.zeros(samples.shape[0])
for i in range(samples.shape[0]):
R = samples[i, 0]
S = samples[i, 1]
g[i] = R - S
return g


def example2(samples=None):
import numpy as np
d = 2
beta = 3.0902
g = np.zeros(samples.shape[0])
Expand All @@ -30,9 +30,10 @@ def example3(samples=None):
for i in range(samples.shape[0]):
g[i] = 6.2*samples[i, 0] - samples[i, 1]*samples[i, 2]**2
return g



def example4(samples=None):
g = np.zeros(samples.shape[0])
for i in range(samples.shape[0]):
g[i] = samples[i, 0]*samples[i, 1] - 80
return g
return g

0 comments on commit 3cb5fcd

Please sign in to comment.