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

vector needs clamping scaletype #413

Open
danlipsa opened this issue Jun 17, 2019 · 4 comments
Open

vector needs clamping scaletype #413

danlipsa opened this issue Jun 17, 2019 · 4 comments

Comments

@danlipsa
Copy link
Contributor

Besides the list of options already available for scaletype, we need to add clamping.
So instead of mapping [minnorm, maxnorm] to a range of colors we map a user specified
[scalerange[0], scalerange[1]].

This will give us the ability to ignore possible outliers in the vector data.

@danlipsa
Copy link
Contributor Author

@scottwittenburg @doutriaux1 @aashish24 Please comment.

@danlipsa
Copy link
Contributor Author

See the comment in vector.py scaletype for the available scaling options.

@doutriaux1
Copy link
Contributor

@danlipsa sounds good, what is it doing currently?

@danlipsa
Copy link
Contributor Author

danlipsa commented Jun 17, 2019

This is the help for scaletype. The default is constantNNormalize.

      off - No scaling is performed on the vector values
      constant: vector value *  self.scale
      normalize: vector value /  max_norm
      constantNNormalize: vector value * self.scale / max_norm
      linear: map [min_norm, max_norm] to self.scalerange
      constantNLinear - map [min_norm, max_norm] to self.scalerange and then multiply by self.scale

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