Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
К
Классификация погрешности измерений
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Лотуга Данила Сергеевич
Классификация погрешности измерений
Commits
09f1350a
Commit
09f1350a
authored
Oct 19, 2022
by
vrnnncl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initial commit
parents
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
main.py
main.py
+31
-0
No files found.
main.py
0 → 100644
View file @
09f1350a
from
numpy
import
square
,
round
,
average
,
abs
,
var
,
sqrt
,
divide
,
multiply
d1
=
[
14.85
,
14.80
,
14.79
,
14.84
,
14.81
]
d2
=
[
7.48
,
7.49
,
7.52
,
7.47
,
7.50
]
d3
=
[
47.12
,
47.08
,
47.13
]
d4
=
[
24.75
,
24.90
,
24.85
,
25.05
,
24.85
]
def
stat
(
lst
):
avg
=
round
(
average
(
lst
),
10
)
difference
=
[
round
(
lst_i
-
avg
,
10
)
for
lst_i
in
lst
]
diff_sq
=
square
(
difference
)
disp
=
round
(
var
(
lst
),
10
)
sqrt_disp
=
round
(
sqrt
(
disp
),
10
)
absolute
=
round
(
average
(
abs
(
difference
)),
10
)
relative
=
round
(
multiply
(
divide
(
absolute
,
avg
),
100
),
10
)
print
(
f
"{lst = }
\n
"
f
"разность: {difference}
\n
"
f
"квадратичная разность: {diff_sq}
\n
"
f
"среднее: {avg}
\n
"
f
"среднеквадратичная погрешность: {disp}
\n
"
f
"стандартное отклонение: {sqrt_disp}
\n
"
f
"абсолютная погрешность: {absolute}
\n
"
f
"относительная погрешность: {relative}
%
\n
"
)
if
__name__
==
"__main__"
:
stat
(
d4
)
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