***
Wartungsfenster jeden ersten Mittwoch vormittag im Monat
***
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jackknife
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
E138 Institute of Solid State Physics
E138-01 Computational Materials Science
Software
jackknife
Commits
187f3eee
Commit
187f3eee
authored
5 years ago
by
Patrick Kappl
Browse files
Options
Downloads
Patches
Plain Diff
Add main.py to test jackknife estimator
parent
477402f8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
main.py
+19
-0
19 additions, 0 deletions
main.py
with
19 additions
and
0 deletions
main.py
0 → 100644
+
19
−
0
View file @
187f3eee
#%%
# So?
#from jackknife import get_generator
#from jackknife import do_jackknife_estimation
# Oder so?
#import jackknife as jk
# Oder doch so?
import
jackknife
#%%
n
=
10
my_list
=
[
x
/
n
for
x
in
range
(
0
,
n
+
1
)]
my_generator
=
jackknife
.
get_generator
(
my_list
)
#%%
output
=
jackknife
.
do_jackknife_estimation
(
my_generator
,
lambda
x
:
1
*
x
)
print
(
"
{}{}
"
.
format
(
"
mean =
"
,
output
[
0
]))
print
(
"
{}{}
"
.
format
(
"
variance =
"
,
output
[
1
]))
print
(
"
{}{}
"
.
format
(
"
standard deviation =
"
,
output
[
2
]))
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment