Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nghyd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Cassiopée
nghyd
Commits
e1ba75a4
Commit
e1ba75a4
authored
5 years ago
by
mathias.chouet
Browse files
Options
Downloads
Patches
Plain Diff
Graphique de résultats multivariés: le paramètre le plus long est choisi comme abscisse par défaut
parent
cb132c95
No related branches found
No related tags found
Tags containing commit
1 merge request
!46
Resolve "Fonctionnalité : plusieurs paramètres qui varient (Voir Jalhyd#62)"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/results/var-results.ts
+8
-1
8 additions, 1 deletion
src/app/results/var-results.ts
with
8 additions
and
1 deletion
src/app/results/var-results.ts
+
8
−
1
View file @
e1ba75a4
...
@@ -44,6 +44,9 @@ export class VarResults extends CalculatedParamResults implements PlottableData
...
@@ -44,6 +44,9 @@ export class VarResults extends CalculatedParamResults implements PlottableData
/** size of the longest variated parameter */
/** size of the longest variated parameter */
public
size
:
number
;
public
size
:
number
;
/** index of the longest variated parameter */
public
longest
:
number
;
/**
/**
* tableau des ordonnées du graphe des résultats variés
* tableau des ordonnées du graphe des résultats variés
*/
*/
...
@@ -60,6 +63,7 @@ export class VarResults extends CalculatedParamResults implements PlottableData
...
@@ -60,6 +63,7 @@ export class VarResults extends CalculatedParamResults implements PlottableData
this
.
_extraResultHeaders
=
[];
this
.
_extraResultHeaders
=
[];
this
.
extraResultKeys
=
[];
this
.
extraResultKeys
=
[];
this
.
_yValues
=
[];
this
.
_yValues
=
[];
this
.
longest
=
0
;
}
}
public
get
variatedParameters
():
NgParameter
[]
{
public
get
variatedParameters
():
NgParameter
[]
{
...
@@ -172,11 +176,14 @@ export class VarResults extends CalculatedParamResults implements PlottableData
...
@@ -172,11 +176,14 @@ export class VarResults extends CalculatedParamResults implements PlottableData
// liste la plus longue
// liste la plus longue
this
.
size
=
0
;
this
.
size
=
0
;
let
i
=
0
;
for
(
const
v
of
this
.
_variatedParams
)
{
for
(
const
v
of
this
.
_variatedParams
)
{
const
s
=
v
.
valuesIterator
.
count
();
const
s
=
v
.
valuesIterator
.
count
();
if
(
s
>
this
.
size
)
{
if
(
s
>
this
.
size
)
{
this
.
size
=
s
;
this
.
size
=
s
;
this
.
longest
=
i
;
}
}
i
++
;
}
}
// valeurs du paramètre à calculer
// valeurs du paramètre à calculer
...
@@ -202,7 +209,7 @@ export class VarResults extends CalculatedParamResults implements PlottableData
...
@@ -202,7 +209,7 @@ export class VarResults extends CalculatedParamResults implements PlottableData
}
else
if
(
this
.
extraResultKeys
.
length
>
0
)
{
}
else
if
(
this
.
extraResultKeys
.
length
>
0
)
{
defaultY
=
this
.
extraResultKeys
[
0
];
defaultY
=
this
.
extraResultKeys
[
0
];
}
}
this
.
chartX
=
this
.
chartX
||
this
.
variatedParameters
[
0
].
symbol
;
this
.
chartX
=
this
.
chartX
||
this
.
variatedParameters
[
this
.
longest
].
symbol
;
this
.
chartY
=
defaultY
;
this
.
chartY
=
defaultY
;
// calculator type for translation
// calculator type for translation
...
...
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