Login or Sign Up
Logging in...
Remember me
Log in
Forgot password or user name?
or
Sign Up
Log in with
Search in titles only
Search in EFS New Study Suggestions only
Search
Advanced Search
Forums
Articles
Groups
Member List
Forum
EFS Development
EFS New Study Suggestions
Announcement
Collapse
No announcement yet.
Linear Reg rev
Collapse
X
Collapse
Posts
Latest Activity
Photos
Search
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
juano
Registered User
Join Date:
Jan 2003
Posts:
45
Share
Tweet
#1
Linear Reg rev
12-10-2003, 09:18 AM
\Wizard\FDLC\Linear Regresion Reversal.efs, line 27: SyntaxError: invalid return:
return 1;
need help to solve this syntax error
ACM
Senior User
Join Date:
Oct 2002
Posts:
19393
Share
Tweet
#2
12-10-2003, 09:29 AM
juano
You may want to post the efs.
Alex
Comment
Post
Cancel
juano
Registered User
Join Date:
Jan 2003
Posts:
45
Share
Tweet
#3
12-10-2003, 09:32 AM
LRR
function preMain()
{
setStudyTitle("Linear Reg Reversal");
setCursorLabelName("LRR",0);
setDefaultBarFgColor(Color.green,0);
setDefaultBarThickness(2,0);
}
function main(Length) {
if(Length==null)Length=5;
var sum=0;
var i=0;
var mt=0;
var WT=0;
var vWT2=getGlobalValue("WT2");
}
for(i=Legth;i>0;i--)
sum +=(i-(Legth+1)/3)*close(i-Length);
WT=6/(Length*(Length+1))*sum
if(WT>=vWT2)
{
setGlobalValue("WT2",WT);
return 1;
}
else
{
setGlobalValue("WT2",WT);
return -1;
}
return;
}
Comment
Post
Cancel
ACM
Senior User
Join Date:
Oct 2002
Posts:
19393
Share
Tweet
#4
12-10-2003, 09:53 AM
juano
I think the attached efs is the script you want
Alex
Attached Files
lin reg reverse.efs
(1.0 KB, 166 views)
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
X
Comment