date2nominal.html

来自「数据挖掘方面最新软件」· HTML 代码 · 共 661 行 · 第 1/3 页

HTML
661
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.5.0_13) on Mon Jul 14 01:36:43 CEST 2008 --><TITLE>Date2Nominal (RapidMiner Class Documentation)</TITLE><META NAME="keywords" CONTENT="com.rapidminer.operator.preprocessing.filter.Date2Nominal class"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){    parent.document.title="Date2Nominal (RapidMiner Class Documentation)";}</SCRIPT><NOSCRIPT></NOSCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Date2Nominal.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../../com/rapidminer/operator/preprocessing/filter/ChangeAttributeType.html" title="class in com.rapidminer.operator.preprocessing.filter"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../../com/rapidminer/operator/preprocessing/filter/ExampleFilter.html" title="class in com.rapidminer.operator.preprocessing.filter"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../../index.html?com/rapidminer/operator/preprocessing/filter/Date2Nominal.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="Date2Nominal.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">com.rapidminer.operator.preprocessing.filter</FONT><BR>Class Date2Nominal</H2><PRE>java.lang.Object  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../com/rapidminer/operator/Operator.html" title="class in com.rapidminer.operator">com.rapidminer.operator.Operator</A>      <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>com.rapidminer.operator.preprocessing.filter.Date2Nominal</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../com/rapidminer/gui/wizards/ConfigurationListener.html" title="interface in com.rapidminer.gui.wizards">ConfigurationListener</A>, <A HREF="../../../../../com/rapidminer/gui/wizards/PreviewListener.html" title="interface in com.rapidminer.gui.wizards">PreviewListener</A>, <A HREF="../../../../../com/rapidminer/parameter/ParameterHandler.html" title="interface in com.rapidminer.parameter">ParameterHandler</A>, <A HREF="../../../../../com/rapidminer/tools/LoggingHandler.html" title="interface in com.rapidminer.tools">LoggingHandler</A></DD></DL><HR><DL><DT><PRE>public class <B>Date2Nominal</B><DT>extends <A HREF="../../../../../com/rapidminer/operator/Operator.html" title="class in com.rapidminer.operator">Operator</A></DL></PRE><P><p>This operator transforms the specified date attribute and writes a new nominal attribute  in a user specified format. This might be useful for time base OLAP to change the granularity of the time stamps from day to week or month.</p>  <p>The date format can be specified by the date_format parameter like described in the following.</p>  <h4>Date and Time Patterns</h4> <p> Date and time formats are specified by <em>date and time pattern</em> strings in the date_format parameter. Within date and time pattern strings, unquoted letters from <code>'A'</code> to <code>'Z'</code> and from <code>'a'</code> to <code>'z'</code> are interpreted as pattern letters representing the components of a date or time string. Text can be quoted using single quotes (<code>'</code>) to avoid interpretation. <code>"''"</code> represents a single quote. All other characters are not interpreted; they're simply copied into the output string during formatting or matched against the input string during parsing.</p>  <p> The following pattern letters are defined (all other characters from <code>'A'</code> to <code>'Z'</code> and from <code>'a'</code> to <code>'z'</code> are reserved):</p> <ul> <li><em>G</em>: era designator; Text; example: AD</li> <li><em>y</em>: year; Year; example: 1996; 96</li> <li><em>M</em>: month in year; Month; example: July; Jul; 07</li> <li><em>w</em>: week in year; Number; example: 27</li> <li><em>W</em>: week in month; Number; example: 2</li> <li><em>D</em>: day in year; Number; example: 189</li> <li><em>d</em>: day in month; Number; example: 10</li> <li><em>F</em>: day of week in month; Number; example: 2</li> <li><em>E</em>: day in week; Text; example: Tuesday; Tue</li> <li><em>a</em>: am/pm marker; Text; example: PM</li> <li><em>H</em>: hour in day (0-23); Number; example: 0</li> <li><em>k</em>: hour in day (1-24); Number; example: 24</li> <li><em>K</em>: hour in am / pm (0-11); Number; example: 0</li> <li><em>h</em>: hour in am / pm (1-12); Number; example: 12</li> <li><em>m</em>: minute in hour; Number; example: 30</li> <li><em>s</em>: second in minute; Number; example: 55</li> <li><em>S</em>: millisecond; Number; example: 978</li> <li><em>z</em>: time zone; General Time Zone; example: Pacific Standard Time; PST; GMT-08:00</li> <li><em>Z</em>: time zone; RFC 822 Time Zone; example: -0800</li> </ul>  <p>Pattern letters are usually repeated, as their number determines the exact presentation:</p> <ul> <li><em>Text:</em>    For formatting, if the number of pattern letters is 4 or more,    the full form is used; otherwise a short or abbreviated form    is used if available.    For parsing, both forms are accepted, independent of the number    of pattern letters.</li> <li><em>Number:</em>    For formatting, the number of pattern letters is the minimum    number of digits, and shorter numbers are zero-padded to this amount.    For parsing, the number of pattern letters is ignored unless    it's needed to separate two adjacent fields.</li> <li><em>Year:</em>    If the underlying calendar is the Gregorian calendar, the following     rules are applied.    <ul>    <li>For formatting, if the number of pattern letters is 2, the year        is truncated to 2 digits; otherwise it is interpreted as a        <em>number</em>.</li>    <li>For parsing, if the number of pattern letters is more than 2,        the year is interpreted literally, regardless of the number of        digits. So using the pattern "MM/dd/yyyy", "01/11/12" parses to        Jan 11, 12 A.D.</li>    <li>For parsing with the abbreviated year pattern ("y" or "yy"),        this operator must interpret the abbreviated year        relative to some century.  It does this by adjusting dates to be        within 80 years before and 20 years after the time the operator        is created. For example, using a pattern of "MM/dd/yy" and the        operator created on Jan 1, 1997,  the string        &quot;01/11/12&quot; would be interpreted as Jan 11, 2012 while the string         &quot;05/04/64&quot;        would be interpreted as May 4, 1964.        During parsing, only strings consisting of exactly two digits will be         parsed into the default century.        Any other numeric string, such as a one digit string, a three or more digit        string, or a two digit string that isn't all digits (for example, &quot;-1&quot;), is        interpreted literally.  So &quot;01/02/3&quot; or &quot;01/02/003&quot; are parsed, using the        same pattern, as Jan 2, 3 AD.  Likewise, &quot;01/02/-3&quot; is parsed as Jan 2, 4 BC.</li>    </ul>    Otherwise, calendar system specific forms are applied.    If the number of pattern    letters is 4 or more, a calendar specific long form is used. Otherwise, a calendar    short or abbreviated form is used.</li>     <li><em>Month:</em>    If the number of pattern letters is 3 or more, the month is    interpreted as <em>text</em>; otherwise,    it is interpreted as a <em>number</em>.</li>     <li><em>General time zone:</em>    Time zones are interpreted as <em>text</em> if they have    names. It is possible to define time zones by representing a GMT offset value.    RFC 822 time zones are also accepted.</li>     <li><em>RFC 822 time zone:</em>    For formatting, the RFC 822 4-digit time zone format is used.    General time zones are also accepted.</li> </ul>  <p>This operator also supports <em>localized date and time pattern</em> strings by defining the locale parameter. In these strings,  the pattern letters described above may be replaced with other, locale dependent, pattern letters.</p>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?