Quote:
I'll admit that this is quite a heavy question. Please, if you don't understand my question, PLEASE just ask me to clarify! I need your help!
The question does not look very difficult, but then again, I no clue what you are asking at all :(
Pieman wrote:
Edit: Nevermind this topic. I've decided the problem is too far beyond my scope to describe its contextual situation.
My problem is that I don't understand what you want to know.
Quote:
So, if I have two linear functions
a(i) = im + x
b(j) = jn + y
Ah, math. Good!
Quote:
that are discretized into integers,
int a = im + x;
int b = jn + y;
I would expect a(i) = int(im + x), but never mind.
Note that 'int' casting is often different from the mathematical notion 'floor' for negative arguments.
A second point is perhaps the values of i and j. Are they integer too?
Quote:
(note: these lines are limited / finite)
Finite how? in i or j ? in a(i) or b(j) ? in a different way?
Quote:
which may be combined in a correlative way
and here you lost me. What does this mean? What combinations are allowed?
(ie how do you decide whether a(2) and b(16) are allowed or not?)
Quote:
-- naturally, a large number of combinations will never occur; tending to linearly correlate -- then how can I refer to these combinations with integer-based indices? I'm certain these kinds of combinations are indicable.
Not exactly sure what this means, so I could be very wrong here. Some options:
- List them all is one way, that surely works.
- Reserve some bits for i and some other bits for j in the index number would be another way. Likely that will lead to holes in your indices.
- A third way is to count them from the start until you reach 'combination_index'
Like a set/array: AB[combinationIndex].
Quote:
That looks like an incremental function (ie from the n-th, combination find the (n+1)-th) to me, not sure how that maps to your AB[..]
Quote:
Isn't the answer just another linear function that maps the correlation between them, or something?
Yes, since 'or something' can mean anything :)
Perhaps it is a linear function, but I don't know how a(i) and b(j) relate to each other, in particular when are they allowed.
Also, it feels like you are solving an X-Y problem, but I lack context to judge that properly.
Quote:
To clarify this "correlation," it's really just about where 'i' and 'j' can be plausibly selected.
But what is the rule?
_________________
My project: Messing about in
FreeRCT,
dev blog, and IRC #freerct at oftc.net