Questions tagged [ets]

ets: Erlang Term Storage. It is a set of Erlang built in functions (BIF) that aims to provide a way to store in memory a large amount of data with constant access time. The data is stored as {Key,Value} tuples where both Key an Value may be any Erlang terms. It can be configured as ordered set, set, bag or duplicate_bag.

159 questions
0
votes
2 answers

Two tables with different names and using the single record cannot be created, how can I implent this?

I'm trying to create two tables using the same record, with two different names, but it creates only any one of them or sometimes throws an exception. Following is the code from my record file: -record(account,{acctnum, cnic, name, address,date…
Umer Hassan
  • 1,119
  • 6
  • 16
  • 23
0
votes
1 answer

Does ETS smoothing model work for more than one year forecast in R?

I am currently using ets() to forecast future values based on historic time series data in R. I used forecast() function to predict next 24 data points. However, the output gives same numbers for the first 12 and the last 12 data points. For…
priyaj
  • 51
  • 1
  • 5
0
votes
1 answer

Why are ETS tables not garbage collected?

I'm learning Erlang so this is a question to improve my understanding of the Erlang design choices. Why are the ETS datastructures (dictionary/tree) treated so differently to the Erlang built-in types (lists/tuples etc). That is, they are not…
jjh
  • 554
  • 1
  • 5
  • 12
0
votes
2 answers

In Erlang, can I use ets:tab2list without including line breaks for nested tuples?

I am creating an ets; ets:new(myets,[duplicate_bag,public,named_table]). I am putting in data in the following…
Lee
  • 29,398
  • 28
  • 117
  • 170
0
votes
1 answer

Erlang - ring benchmark with ETS

I'm trying to write a ring benchmark where I have N processes and I send a message through them M times. I'd like to store the processes' pid in an ETS table. -module(ringmets). -compile(export_all). start_m(N, M, Msg) -> ets:new(pid,…
anon
0
votes
1 answer

ets match_object with match spec

-record(rule, {id, low, high}). test_ets() -> ets:new(rule_table,[named_table,public,bag]), ets:insert(rule_table, #rule{id=1, low=2, high=5}), ets:match_object(rule_table, [{'$1',[{'>=', {element, #rule.low, '$1'}, 2}, …
goofansu
  • 2,277
  • 3
  • 30
  • 48
0
votes
1 answer

How to download the Enthought Tool Suite python script?

I have Python downloaded already, but want to contribute code to the Enthought Tool Suite (ETS). According to this site (http://code.enthought.com/source/): it says to download the following python script:…
user1539217
  • 85
  • 3
  • 10
-1
votes
1 answer

Error using the forecast function with the ets or nntar function

I am trying to use the forecast() function in R on different ETS objects or NNTAR. I get the same error message everytime. ets_model <- ets(trainingdata) ets_forecast.pred <- forecast(ets_model, h=10) I get the following error message: "Error in…
-1
votes
1 answer

In ETS packages can you use high frequency f=365..?

I am using forecast function ..and ts() ,using F=365.........AND able to see gud day wise seasonality..in Hyndman sir blog I read "I am often asked how to fit an ARIMA or ETS model with data hav­ing a long sea­sonal period such as 365 for daily data…
1 2 3
10
11