Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECDF Stat #832

Merged
merged 17 commits into from
Aug 2, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add another one demo case for the eCDF.
  • Loading branch information
ASmirnov-HORIS committed Aug 2, 2023
commit dd3cdd04e633a6cb7628dd02937af219421b4731
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ class ECDF {
return listOf(
basic(),
withInterpolation(),
withGrouping()
withGrouping(),
withOrientationChange(),
)
}

Expand Down Expand Up @@ -58,8 +59,7 @@ class ECDF {
'geom': 'step',
'stat': 'ecdf',
'n': 10,
'pad': true,
'direction': 'vh'
'pad': true
}
]
}
Expand Down Expand Up @@ -97,4 +97,31 @@ class ECDF {
return plotSpec

}

private fun withOrientationChange(): MutableMap<String, Any> {
val spec = """
{
'kind': 'plot',
'mapping': {
'y': 'sepal length (cm)'
},
'ggtitle': {
'text': 'Orientation changed'
},
'layers': [
{
'geom': 'step',
'stat': 'ecdf',
'pad': true,
'orientation': 'y'
}
]
}
""".trimIndent()

val plotSpec = HashMap(parsePlotSpec(spec))
plotSpec["data"] = Iris.df
return plotSpec

}
}