Click here to Skip to main content
15,895,667 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Trapezoid interpolation Pin
Joan M8-Feb-17 9:05
professionalJoan M8-Feb-17 9:05 
GeneralRe: Trapezoid interpolation Pin
Patrice T8-Feb-17 9:34
mvePatrice T8-Feb-17 9:34 
GeneralRe: Trapezoid interpolation Pin
Ralf Meier8-Feb-17 10:04
mveRalf Meier8-Feb-17 10:04 
GeneralRe: Trapezoid interpolation Pin
Joan M9-Feb-17 8:58
professionalJoan M9-Feb-17 8:58 
GeneralRe: Trapezoid interpolation Pin
Patrice T9-Feb-17 11:45
mvePatrice T9-Feb-17 11:45 
GeneralRe: Trapezoid interpolation Pin
Joan M9-Feb-17 21:57
professionalJoan M9-Feb-17 21:57 
GeneralRe: Trapezoid interpolation Pin
Patrice T9-Feb-17 22:53
mvePatrice T9-Feb-17 22:53 
GeneralRe: Trapezoid interpolation Pin
Joan M9-Feb-17 23:10
professionalJoan M9-Feb-17 23:10 
Yes, but this is not acceptable...

That code will run in a very small processor in a realtime deterministic system and I can't afford spending this amount of time in each cycle.

That's why I need to find the vmax calculating and not by decreasing the value little by little...

I can see two possible approaches:

A) graphical approach with trigonometry trying to find the intersection point of the two straight lines in a time/velocity graph.

B) trying to find the solution via quadratic equations.

In case none of them work, then, at least I would implement a sort of binary search to minimize the searching time for vmax, but I will work to avoid that.

Thank you for your suggestion though. Thumbs Up | :thumbsup:
GeneralRe: Trapezoid interpolation Pin
Patrice T9-Feb-17 23:21
mvePatrice T9-Feb-17 23:21 
GeneralRe: Trapezoid interpolation Pin
Joan M9-Feb-17 23:28
professionalJoan M9-Feb-17 23:28 
GeneralRe: Trapezoid interpolation Pin
Joan M12-Feb-17 3:03
professionalJoan M12-Feb-17 3:03 
QuestionLongest subarray: minimum first element, maximum last element Pin
Member 105660894-Feb-17 23:44
Member 105660894-Feb-17 23:44 
AnswerRe: Longest subarray: minimum first element, maximum last element Pin
Richard Andrew x645-Feb-17 3:25
professionalRichard Andrew x645-Feb-17 3:25 
QuestionRe: Longest subarray: minimum first element, maximum last element Pin
Member 105660895-Feb-17 3:28
Member 105660895-Feb-17 3:28 
AnswerRe: Longest subarray: minimum first element, maximum last element Pin
Patrice T8-Feb-17 9:42
mvePatrice T8-Feb-17 9:42 
AnswerRe: Longest subarray: minimum first element, maximum last element Pin
Patrice T8-Feb-17 9:52
mvePatrice T8-Feb-17 9:52 
GeneralRe: Longest subarray: minimum first element, maximum last element Pin
Member 105660898-Feb-17 10:10
Member 105660898-Feb-17 10:10 
GeneralRe: Longest subarray: minimum first element, maximum last element Pin
Patrice T8-Feb-17 10:56
mvePatrice T8-Feb-17 10:56 
GeneralRe: Longest subarray: minimum first element, maximum last element Pin
Member 105660898-Feb-17 15:15
Member 105660898-Feb-17 15:15 
QuestionAccounting aging algorithm help Pin
kimbhoot26-Jan-17 5:52
kimbhoot26-Jan-17 5:52 
AnswerRe: Accounting aging algorithm help Pin
Gerry Schmitz26-Jan-17 7:08
mveGerry Schmitz26-Jan-17 7:08 
GeneralRe: Accounting aging algorithm help Pin
kimbhoot26-Jan-17 10:51
kimbhoot26-Jan-17 10:51 
GeneralRe: Accounting aging algorithm help Pin
Gerry Schmitz26-Jan-17 11:04
mveGerry Schmitz26-Jan-17 11:04 
GeneralSo I Wrote A Backward Version Of KMP Algorithm In C# That Searches String From Right Pin
Robert Vandenberg Huang9-Jan-17 18:30
professionalRobert Vandenberg Huang9-Jan-17 18:30 
GeneralRe: So I Wrote A Backward Version Of KMP Algorithm In C# That Searches String From Right Pin
Gerry Schmitz26-Jan-17 7:18
mveGerry Schmitz26-Jan-17 7:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.