metron-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cestella <>
Subject [GitHub] incubator-metron pull request #403: METRON-640: Add a Stellar function to co...
Date Tue, 10 Jan 2017 14:41:49 GMT
Github user cestella commented on a diff in the pull request:
    --- Diff: metron-platform/metron-common/src/main/java/org/apache/metron/common/dsl/functions/
    @@ -284,4 +287,36 @@ private static Object fill(FillDirection direction, Object inputObject,
Object f
         return org.apache.commons.lang.StringUtils.rightPad(input,requiredLength,fill);
    +  @Stellar( namespace="STRING"
    +          , name="ENTROPY"
    +          , description = "Computes the base-2 shannon entropy of a string"
    --- End diff --
    Good catch; this is, at this point, pretty classical work, so I link to the wikipedia
definition rather than claude shannon's original work.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message