Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
quarter_car_model_data_preparation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mibaj
quarter_car_model_data_preparation
Commits
d9be7324
Commit
d9be7324
authored
Aug 31, 2020
by
mibaj
Browse files
Options
Downloads
Patches
Plain Diff
Update README
parent
4b45627b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README
+3
-34
3 additions, 34 deletions
README
with
3 additions
and
34 deletions
README
+
3
−
34
View file @
d9be7324
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Aug 31 14:09:35 2020
@author: milena
"""
Python scripts for preprocessing of simulation data produced when a car is traversing a road with cracks, potholes and patches, for diferent defect geometries and car speeds.
Simulation
of
acceleration
signal
produced
when
a
car
is
traversing
a
road
with
cracks
,
potholes
and
patches
.
Car
parameters
:
Golden
car
model
Road
length
:
100
m
Defect
geometries
:
patch
:
dmin
=
0.005
;
dmax
=
0.05
;
dincr
=
0.005
;
%
minimum
,
maximum
and
increment
of
severity
wmin
=
0.250
;
wmax
=
5.00
;
wincr
=
0.0500
;
%
minimum
,
maximum
and
increment
of
length
pothole
:
dmin
=
-
0.010
;
dmax
=
-
0.25
;
dincr
=
-
0.005
;
%
minimum
,
maximum
and
increment
of
severity
wmin
=
0.050
;
wmax
=
0.50
;
wincr
=
0.0250
;
%
minimum
,
maximum
and
increment
of
length
crack
;
dmin
=
-
0.020
;
dmax
=
-
0.30
;
dincr
=
-
0.005
;
%
minimum
,
maximum
and
increment
of
severity
wmin
=
0.004
;
wmax
=
0.04
;
wincr
=
0.0020
;
%
minimum
,
maximum
and
increment
of
length
Speed
:
0
-
120
km
/
h
with
step
=
2
km
/
h
Sampling
frequency
:
around
300
Hz
(
can
differ
by
few
Hzs
between
examples
)
Cases
with
too
narrow
defects
to
be
recorded
with
this
sampling
frequency
,
are
removed
during
preprocessing
.
Directory
contents
:
-
Matlab
-
files
:
output
of
simulation
module
-
each
.
m
file
corresponds
to
one
defect
type
,
geometry
and
speed
.
-
train
-
val
-
test
:
all
matlab
files
are
converted
to
numpy
arrays
/
floats
/
string
and
organized
into
a
pandas
and
dataframe
which
is
saved
as
a
pickle
file
(
'
full_simulation.pkl
'
).
Each
row
in
dataframe
corresponds
to
one
matlab
file
.
The
full
file
is
split
into
60
%/
20
%/
20
%
train
/
valid
/
test
files
.
The
too
narrow
defects
without
any
point
are
removed
.
-
train
-
val
-
test
-
normalized
:
the
train
file
from
train
-
val
-
test
is
scaled
to
0
-
1
range
.
The
scaler
is
saved
and
applied
to
valid
and
test
files
.
-
train
-
val
-
test
-
normalized
-
split
-
into
-
windows
:
A
sliding
window
of
size
=
2
m
and
step
=
1
point
is
applied
on
train
/
valid
/
test
files
from
train
-
val
-
test
-
normalized
.
The
results
are
saved
in
this
directory
.
Those
are
the
final
results
for
analysis
.
-
scaler
.
pkl
:
train
scaler
file
.
\ No newline at end of file
Required input:
- Quarter-car Matlab simulation files containg data with single-defect cases.
\ No newline at end of file
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