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

Update 1.math.md #690

Merged
merged 2 commits into from
Jul 6, 2021
Merged

Update 1.math.md #690

merged 2 commits into from
Jul 6, 2021

Conversation

foesa-yang
Copy link
Contributor

No description provided.

| GROUP BY $-.dst \
YIELD \
$-.dst AS dst, \
(INT)(sum($-.age)/count($-.age))+avg(distinct $-.age+1)+1 AS statistics
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DO NOT USE C style cast

use toInteger() instead.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

besides, what is this function meaning? standard deviation or z-score?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I have fixed it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function has no specific meaning, which means that you can use an aggregate function like "COUNT(v)+AVG(v)"

| GROUP BY $-.dst \
YIELD \
$-.dst AS dst, \
(INT)(sum($-.age)/count($-.age))+avg(distinct $-.age+1)+1 AS statistics
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

besides, what is this function meaning? standard deviation or z-score?

@cooper-lzy cooper-lzy merged commit 56223dc into vesoft-inc:master Jul 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants