Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christian Butz
VTK
Commits
e21a56c0
Commit
e21a56c0
authored
Sep 03, 2010
by
Philippe Pébay
Browse files
ENH: modified example script to reflect changes to order stats
parent
86c19017
Changes
1
Hide whitespace changes
Inline
Side-by-side
Examples/Infovis/Python/statistics_temperatures.py
View file @
e21a56c0
...
...
@@ -20,8 +20,8 @@ ds.AddColumn("Temp2")
ds
.
Update
()
dStats
=
ds
.
GetOutputDataObject
(
1
)
dPrimary
=
dStats
.
GetBlock
(
0
)
dDerived
=
dStats
.
GetBlock
(
1
)
dPrimary
=
dStats
.
GetBlock
(
0
)
dDerived
=
dStats
.
GetBlock
(
1
)
dPrimary
.
Dump
(
15
)
dDerived
.
Dump
(
15
)
print
...
...
@@ -35,8 +35,8 @@ os.AddColumn("Temp2")
os
.
Update
()
oStats
=
os
.
GetOutputDataObject
(
1
)
o
Primary
=
oStats
.
GetBlock
(
0
)
o
Primary
.
Dump
(
15
)
o
Quantiles
=
oStats
.
GetBlock
(
2
)
o
Quantiles
.
Dump
(
15
)
print
print
"# Calculate deciles:"
...
...
@@ -45,8 +45,8 @@ os.SetNumberOfIntervals(10)
os
.
Update
()
oStats
=
os
.
GetOutputDataObject
(
1
)
o
Primary
=
oStats
.
GetBlock
(
0
)
o
Primary
.
Dump
(
9
)
o
Quantiles
=
oStats
.
GetBlock
(
2
)
o
Quantiles
.
Dump
(
9
)
print
print
"# Calculate correlation and linear regression:"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment