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

Applying custom base conditions to frequency views #83

Closed
jamesrkg opened this issue Sep 29, 2015 · 2 comments
Closed

Applying custom base conditions to frequency views #83

jamesrkg opened this issue Sep 29, 2015 · 2 comments
Assignees

Comments

@jamesrkg
Copy link
Contributor

We need a way to apply conditions onto the implied base of frequency views so as to allow for fine control over proportional (%) results.

In effect, this is cusomization of the kwarg rel_to:

'rel_to': [
    None, 
    'y', 
    {'y': {'x': has_any(frange('1-8'))}}
]

In this case, three sets of views are created - counts, natural-c% and custom-c% using the additional logical condition {'x': has_any(frange('1-8'))}.

Custom rel_to instructions follow the convention {axis_of_orientation: wildcard_logical_condition} where wildcard_logical_condition can be any wildard custom logic with the added option of using the shorthand keys x or y to refer to the given link's x or y variables. This shorthand would only be available for non-nested link axes!

The view keys, respectively, would be (I'm using the view key notation proposed in #67):

rel_to: None --> x|f|:|||my_net
rel_to: 'y' --> x|f|:|y||my_net
rel_to: {'y': {'x': has_any(frange('1-8'))}} --> x|f|:|y:x[{1,2,3,4,5,6,7,8}]||my_net

@jamesrkg jamesrkg added this to the RG-11 milestone Sep 29, 2015
@alextanski
Copy link
Contributor

I think we must turn the base def. into a part of a block net defintion to make this more flexible and easier to manage. If we modify the rel_to parameter using the logics, this would mean that we generate one version that is basing on all, then one basing on the logical index length. The block net however will never be correct as a whole.

This implies slicing and concat. views when chaining stuff for exports, a thought that gives me pain in every part of my body.

@alextanski
Copy link
Contributor

Also: what we really need is a "rebaser" method that returns an array of column bases depending on a condition.

@jamesrkg jamesrkg modified the milestones: RG-13, RG-11 Oct 9, 2015
@jamesrkg jamesrkg modified the milestones: RG-14, RG-13 Oct 24, 2015
@jamesrkg jamesrkg removed this from the RG-14 milestone Nov 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants