Difference between revisions of "Congestion charge"

From Testiwiki
Jump to: navigation, search
(See also)
(Dependencies: t2b s and their explanations added)
Line 35: Line 35:
  
 
=== Dependencies ===
 
=== Dependencies ===
 +
 +
==== Items ====
 +
 +
{| {{prettytable}}
 +
|+'''Contents of Items table
 +
|----
 +
! Column|| Explanation
 +
|----
 +
|| ID|| Unique identifier of the row.
 +
|----
 +
|| Name|| A short descriptive name for this row. Used when making a reference to this row.
 +
|----
 +
|| Timestamp|| Time when the row was added.
 +
|----
 +
|| User|| Who added the row (first name)
 +
|----
 +
|| Type|| It the item a factual statement (fact) or value statement (value); or decision, action or variable?
 +
|----
 +
|| Description|| Verbal description of the content of the row.
 +
|----
 +
|}
 +
 +
<t2b name="Items" index="ID,Name,Timestamp,User,Type" obs="Description" unit="-">
 +
|||||
 +
</t2b>
 +
 +
==== Relations ====
 +
 +
{| {{prettytable}}
 +
|+'''Contents of Relations table
 +
|----
 +
! Column|| Explanation
 +
|----
 +
|| ID|| Unique identifier of the row.
 +
|----
 +
|| Name|| A short descriptive name for this row. Used when making a reference to this row.
 +
|----
 +
|| Timestamp|| Time when the row was added.
 +
|----
 +
|| User|| Who added the row (first name)
 +
|----
 +
|| Subject|| Name or identifier of the thing we are talking about
 +
|----
 +
|| Predicate|| Predicate of a sentence (i.e. a verb describing a relation). For list of relations, see  [[Structure of shared understanding]]
 +
|----
 +
|| Object|| Name or identifier of a thing, or number (see above)
 +
|----
 +
|| Description|| Verbal description of the content of the row.
 +
|----
 +
|}
 +
 +
<t2b name="Relations" index="ID,Name,Timestamp,User,Subject,Predicate,Object" obs="Description" unit="-">
 +
|||||||
 +
</t2b>
 +
 +
==== Evaluations ====
 +
 +
{| {{prettytable}}
 +
|+'''Contents of Evaluations table
 +
|----
 +
! Column|| Explanation
 +
|----
 +
|| ID|| Unique identifier of the row.
 +
|----
 +
|| Name|| A short descriptive name for this row. Used when making a reference to this row.
 +
|----
 +
|| Timestamp|| Time when the row was added.
 +
|----
 +
|| User|| Who added the row (first name)
 +
|----
 +
|| Subject|| Name or identifier of the thing we are talking about
 +
|----
 +
|| Evaluation|| One of the relations listed below. The content goes to column Object.
 +
* Truth: Either True or False
 +
* Probability: A value between 0 and 1
 +
* Better than: An item or relation that is worse than subject
 +
* More important than: An item or relation that is less important than  subject
 +
* Utility: A value between 0 (least preferred choice) and 1 (most preferred choice)
 +
|----
 +
|| Object|| Name or identifier of a thing, or number (see above)
 +
|----
 +
|| Description|| Verbal description of the content of the row.
 +
|----
 +
|}
 +
 +
<t2b name="Evaluations" index="ID,Name,Timestamp,User,Subject,Evaluation,Object" obs="Description" unit="-">
 +
|||||||
 +
</t2b>
  
 
* {{comment|# |Add links to pages that belong to this assessment.|--[[User:Jouni|Jouni]] ([[User talk:Jouni|talk]]) 11:36, 10 April 2017 (UTC)}}
 
* {{comment|# |Add links to pages that belong to this assessment.|--[[User:Jouni|Jouni]] ([[User talk:Jouni|talk]]) 11:36, 10 April 2017 (UTC)}}
 +
 +
<rcode graphics=1>
 +
library(OpasnetUtils)
 +
library(OpasnetUtilsExt)
 +
#library(gsheet)
 +
library(reshape2)
 +
library(igraph)
 +
oprint(google.point_kml)
 +
oprint(google.show_kml_data_on_maps)
 +
 +
if(FALSE){
 +
items <- gsheet2tbl("https://docs.google.com/spreadsheets/d/10EuSt-YonlHQyNELCAftSiZ72jAsPKhw5q5MqQhbY10/edit")[1:6]
 +
relations <- gsheet2tbl("https://docs.google.com/spreadsheets/d/10EuSt-YonlHQyNELCAftSiZ72jAsPKhw5q5MqQhbY10/edit#gid=781892235")[1:8]
 +
evaluations <- gsheet2tbl("https://docs.google.com/spreadsheets/d/10EuSt-YonlHQyNELCAftSiZ72jAsPKhw5q5MqQhbY10/edit#gid=1821973371")[1:8]
 +
 +
index <- rbind(
 +
  cbind(items[c("ID", "Name")], Table = "items"),
 +
  cbind(relations[c("ID", "Name")], Table = "relations"),
 +
  cbind(evaluations[c("ID", "Name")], Table = "evaluations")
 +
)
 +
index <- melt(
 +
  index,
 +
  measure.vars = c("ID", "Name"),
 +
  variable.name = "Column",
 +
  value.name = "Identifier"
 +
)
 +
index <- index[!is.na(index$Identifier),]
 +
if(anyDuplicated(index$Identifier)) {
 +
  cat("Warning: The following names are duplicated:\n")
 +
  oprint(index[index$Identifier %in% index$Identifier[duplicated(index$Identifier)],])
 +
}
 +
#colnames(items) <- paste(colnames(items), "I", sep="_")
 +
#colnames(relations) <- paste(colnames(relations), "R", sep="_")
 +
colnames(evaluations)[colnames(evaluations)=="Evaluation"] <- "Predicate"
 +
relations <- rbind(relations, evaluations)
 +
}
 +
objects.latest("Op_fi5642", code_name = "preprocessing")
 +
 +
jy2 <- jy
 +
for(i in 1:ncol(jy2)) jy2[[i]] <- as.character(jy2[[i]])
 +
jy2 <- jy2[1:100,]
 +
it <- data.frame(
 +
  Name = c(jy2$Subjekti, jy2$Objekti),
 +
  stringsAsFactors = TRUE
 +
)
 +
it <- it[!duplicated(it$Name) , , drop = FALSE]
 +
 +
jygraph <- graph.data.frame(
 +
  jy2[c(1,3,2,4:ncol(jy2))],
 +
  directed = TRUE,
 +
  vertices = it
 +
)
 +
 +
plo <- plot.igraph(jygraph,
 +
    vertex.label.cex = 0.8,
 +
    vertex.label = NA,
 +
    vertex.size = 2, #V(jygraph)$vsize,
 +
    vertex.color = "Skyblue2",#V(jygraph)$vcolor,
 +
    vertex.shape = "circle",#V(jygraph)$vshape,
 +
    vertex.frame.color = "Black",
 +
    vertex.label.family = "Helvetica",
 +
    edge.color = "Black",#E(jygraph)$ecolor,
 +
    edge.width = 0.5, #E(jygraph)$ewidth,
 +
    edge.arrow.size = 0.5,
 +
    layout = layout.fruchterman.reingold
 +
)
 +
l <- layout.fruchterman.reingold(jygraph)
 +
oprint(l)
 +
######################################
 +
 +
#library(maptools)
 +
#library(RgoogleMaps)
 +
</rcode>
  
 
== See also ==
 
== See also ==

Revision as of 16:01, 13 May 2017



Question

What reasons are there for implementing or not implementing a congestion charging system in a city? What values and combinations of values result in which combination?

Boundaries

  • The questions are generic, but we aim to look at the issue also specifically in Helsinki.
  • We look at the current situation.

Intended use and users

  • --# : Who could use this information and how? Fill in your thoughts. --Jouni (talk) 11:36, 10 April 2017 (UTC)

Participants

Decisions and scenarios

--# : What options do exist? Fill in your thoughts. --Jouni (talk) 11:36, 10 April 2017 (UTC)

Timing

The assessment will be performed during April-May 2017.

Answer

Not found yet.

Rationale

Dependencies

Items

Contents of Items table
Column Explanation
ID Unique identifier of the row.
Name A short descriptive name for this row. Used when making a reference to this row.
Timestamp Time when the row was added.
User Who added the row (first name)
Type It the item a factual statement (fact) or value statement (value); or decision, action or variable?
Description Verbal description of the content of the row.
Items(-)
ObsIDNameTimestampUserTypeDescription
1

Relations

Contents of Relations table
Column Explanation
ID Unique identifier of the row.
Name A short descriptive name for this row. Used when making a reference to this row.
Timestamp Time when the row was added.
User Who added the row (first name)
Subject Name or identifier of the thing we are talking about
Predicate Predicate of a sentence (i.e. a verb describing a relation). For list of relations, see Structure of shared understanding
Object Name or identifier of a thing, or number (see above)
Description Verbal description of the content of the row.
Relations(-)
ObsIDNameTimestampUserSubjectPredicateObjectDescription
1

Evaluations

Contents of Evaluations table
Column Explanation
ID Unique identifier of the row.
Name A short descriptive name for this row. Used when making a reference to this row.
Timestamp Time when the row was added.
User Who added the row (first name)
Subject Name or identifier of the thing we are talking about
Evaluation One of the relations listed below. The content goes to column Object.
  • Truth: Either True or False
  • Probability: A value between 0 and 1
  • Better than: An item or relation that is worse than subject
  • More important than: An item or relation that is less important than subject
  • Utility: A value between 0 (least preferred choice) and 1 (most preferred choice)
Object Name or identifier of a thing, or number (see above)
Description Verbal description of the content of the row.
Evaluations(-)
ObsIDNameTimestampUserSubjectEvaluationObjectDescription
1
  • --# : Add links to pages that belong to this assessment. --Jouni (talk) 11:36, 10 April 2017 (UTC)

+ Show code

See also

Add a discussion item, relation, or evaluation