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

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

Open
rueckstiess opened this issue Dec 2, 2014 · 2 comments
Open

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

rueckstiess opened this issue Dec 2, 2014 · 2 comments

Comments

@rueckstiess
Copy link
Member

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.

@rueckstiess
Copy link
Member Author

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
        }
    }
}

rueckstiess added a commit that referenced this issue Dec 3, 2014
@imlucas
Copy link
Contributor

imlucas commented Dec 4, 2014

histogram bins feels right

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

No branches or pull requests

2 participants