Displaying 4 results from an estimated 4 matches for "pasitive".
Did you mean:
paliative
2006 Nov 20
3
Creating a new vector
...e would have a vector of indices equal to the length of y. x=y[x] gives us a vector of values with the same length as y. But when I implement such a procedure, x dose not merely include negative values. It includes negative, NA and also positive values.
What could be the reason for appearing pasitive values? And how to correct this? And more generally how can this purpose be coded more convenient?
Thank you so much for any reply.
Amir Safari
2006 Feb 23
0
calculation problem
...s Directinal Symmetry (DS) and Mean Absolute Percentage Error (MAPE) are correctly used with absolute time series which includes only positive values. But how it is possible to use DS and MAPE with other time series like as return series (for example return of a stock exchange index) which includes pasitive and negative values.
Certainly following codes could not be correct:
MAPE= ( (sum (abs( (y-fittedvalue) /y)) )/ n) *100
MAPE
y: real value
because sign of negative values are neglegted. If we code it as following:
absy=abs(y)
signy=sign(y)
absfittedvalue=abs(f...
2007 Dec 21
3
Access url_for from rake task
How do I access ActionController:Base url_for method from a Rake task.
I tried to access ActionController from irb but it doesn''t work?
Check out the pasite http://pastie.caboo.se/131266
--
Anil
http://anilwadghule.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To
2008 Feb 13
5
Example controller spec no worky?
I''m trying to spec a dead simple "show non-existent record should render
404" case, but it seems the RecordNotFound exception is making it
impossible for some reason.
#controller
def show
@event = Event.find(params[:id])
end
#spec - pretty much straight from the rspec site
before do
Event.stub!(:find)
get :show, :id => ''broken''
end
#