Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nshmp-lib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ghsc
National Seismic Hazard Model Project
nshmp-lib
Commits
5b0dbbff
Commit
5b0dbbff
authored
3 years ago
by
Powers, Peter M.
Browse files
Options
Downloads
Patches
Plain Diff
ground motion mutable field placeholders
parent
9a82a4f7
No related branches found
No related tags found
1 merge request
!252
Conditional spectrum (interim updates)
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/gov/usgs/earthquake/nshmp/gmm/GroundMotion.java
+26
-0
26 additions, 0 deletions
...main/java/gov/usgs/earthquake/nshmp/gmm/GroundMotion.java
with
26 additions
and
0 deletions
src/main/java/gov/usgs/earthquake/nshmp/gmm/GroundMotion.java
+
26
−
0
View file @
5b0dbbff
...
...
@@ -19,6 +19,12 @@ public interface GroundMotion {
*/
public
double
sigma
();
// public double rate();
//
// public double epsilon();
//
// public void setDisaggData(double rate, double epsilon);
/**
* Create a new ground motion container.
*
...
...
@@ -29,6 +35,9 @@ public interface GroundMotion {
public
static
GroundMotion
create
(
double
mean
,
double
sigma
)
{
return
new
GroundMotion
()
{
// private double rate;
// private double epsilon;
@Override
public
double
mean
()
{
return
mean
;
...
...
@@ -39,6 +48,22 @@ public interface GroundMotion {
return
sigma
;
}
// @Override
// public double rate() {
// return rate;
// }
//
// @Override
// public double epsilon() {
// return epsilon;
// }
//
// @Override
// public void setDisaggData(double rate, double epsilon) {
// this.rate = rate;
// this.epsilon = epsilon;
// }
@Override
public
String
toString
()
{
return
new
StringBuilder
(
getClass
().
getSimpleName
())
...
...
@@ -49,6 +74,7 @@ public interface GroundMotion {
.
append
(
"]"
)
.
toString
();
}
};
}
}
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