Skip to content

allow categories for other types, like numbers, dates #12

Open
@rueckstiess

Description

@rueckstiess

Instead of converting string to text / category type, provide native type and add a boolean flag $category.

Provide a parameter to determine how many values make a category.

Activity

rueckstiess

rueckstiess commented on Dec 3, 2014

@rueckstiess
ContributorAuthor

Proposal for new schema schema:

{
    $count: 100,
    field: {
        $count: 50,
        $prob: 0.5, 
        $type: 'number',
        $array: true,
        $category: true,
        $hist: [ 
            {v: 1, c: 34}, 
            {v: 2, c: 15}, 
            {v: 0, c: 1},
            {o: 23432}
        ],
        $stats: {
            min: 0,
            max: 2,
            mean: 1.3231,
            std: 0.062
        }
    }
}
added a commit that references this issue on Dec 3, 2014
imlucas

imlucas commented on Dec 4, 2014

@imlucas
Contributor

histogram bins feels right

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      allow categories for other types, like numbers, dates · Issue #12 · mongodb-js/mongodb-schema